ayType aytype all now AyaType or ayaType

This commit is contained in:
2020-05-15 21:08:37 +00:00
parent 7806e0df26
commit 8f3118d309
11 changed files with 77 additions and 42 deletions

View File

@@ -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");
}
}