rename all variants of naming that hold an AyaType value to "aType" (parameter) / "AType" (not parameter) everywhere front and back; "ayType", "objectType", "oType" all are used in various areas
This commit is contained in:
@@ -15,11 +15,11 @@ namespace AyaNova.Biz
|
||||
|
||||
//Returns existance status of object type and id specified in database
|
||||
|
||||
internal static async Task<bool> ExistsAsync(AyaType objectType, long id, AyContext ct)
|
||||
internal static async Task<bool> ExistsAsync(AyaType aType, long id, AyContext ct)
|
||||
{
|
||||
//new up a context??
|
||||
|
||||
switch (objectType)
|
||||
switch (aType)
|
||||
{
|
||||
//CoreBizObject add here
|
||||
case AyaType.NoType://no type always exists and this is used by orphaned attachments
|
||||
@@ -123,7 +123,7 @@ namespace AyaNova.Biz
|
||||
case AyaType.CustomerServiceRequest:
|
||||
return await ct.CustomerServiceRequest.AnyAsync(z => z.Id == id);
|
||||
default:
|
||||
throw new System.NotSupportedException($"AyaNova.Biz.BizObjectExistsInDatabase::ExistsAsync type {objectType.ToString()} is not supported");
|
||||
throw new System.NotSupportedException($"AyaNova.Biz.BizObjectExistsInDatabase::ExistsAsync type {aType.ToString()} is not supported");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user