ayType aytype all now AyaType or ayaType
This commit is contained in:
@@ -21,14 +21,14 @@ namespace AyaNova.Biz
|
||||
|
||||
|
||||
//Returns existance status of object type and id specified in database
|
||||
internal static async Task<bool> ExistsAsync(AyaType aytype, long id, AyContext ct = null)
|
||||
internal static async Task<bool> ExistsAsync(AyaType ayaType, long id, AyContext ct = null)
|
||||
{
|
||||
//new up a context??
|
||||
if (ct == null)
|
||||
{
|
||||
ct = ServiceProviderProvider.DBContext;
|
||||
}
|
||||
switch (aytype)
|
||||
switch (ayaType)
|
||||
{
|
||||
//CoreBizObject add here
|
||||
|
||||
@@ -108,7 +108,7 @@ namespace AyaNova.Biz
|
||||
return await ct.WorkOrderTemplateItem.AnyAsync(m => m.Id == id);
|
||||
|
||||
default:
|
||||
throw new System.NotSupportedException($"AyaNova.Biz.BizObjectExistsInDatabase::ExistsAsync type {aytype.ToString()} is not supported");
|
||||
throw new System.NotSupportedException($"AyaNova.Biz.BizObjectExistsInDatabase::ExistsAsync type {ayaType.ToString()} is not supported");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user