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:
@@ -70,7 +70,7 @@ namespace AyaNova.Api.Controllers
|
||||
// uploadFormData = await ApiUploadProcessor.ProcessUploadAsync(HttpContext);xx
|
||||
|
||||
|
||||
string UploadObjectType = string.Empty;
|
||||
string UploadAType = string.Empty;
|
||||
|
||||
string errorMessage = string.Empty;
|
||||
string Notes = string.Empty;
|
||||
@@ -100,10 +100,10 @@ namespace AyaNova.Api.Controllers
|
||||
return BadRequest(new ApiErrorResponse(ApiErrorCode.INVALID_OPERATION, null, "Missing required FormFieldData value: FileData"));
|
||||
|
||||
|
||||
if (uploadFormData.FormFieldData.ContainsKey("ObjectType"))
|
||||
UploadObjectType = uploadFormData.FormFieldData["ObjectType"].ToString();
|
||||
if (uploadFormData.FormFieldData.ContainsKey("AType"))
|
||||
UploadAType = uploadFormData.FormFieldData["AType"].ToString();
|
||||
else
|
||||
return BadRequest(new ApiErrorResponse(ApiErrorCode.INVALID_OPERATION, null, "Missing required FormFieldData value: ObjectType"));
|
||||
return BadRequest(new ApiErrorResponse(ApiErrorCode.INVALID_OPERATION, null, "Missing required FormFieldData value: AType"));
|
||||
|
||||
//fileData in JSON stringify format which contains the actual last modified dates etc
|
||||
//"[{\"name\":\"Client.csv\",\"lastModified\":1582822079618},{\"name\":\"wmi4fu06nrs41.jpg\",\"lastModified\":1586900220990}]"
|
||||
@@ -112,7 +112,7 @@ namespace AyaNova.Api.Controllers
|
||||
|
||||
|
||||
//Instantiate the business object handler
|
||||
AyaType TheType = System.Enum.Parse<AyaType>(UploadObjectType, true);
|
||||
AyaType TheType = System.Enum.Parse<AyaType>(UploadAType, true);
|
||||
log.LogDebug($"Instantiating biz object handler for {TheType}");
|
||||
var biz = BizObjectFactory.GetBizObject(TheType, ct);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user