This commit is contained in:
@@ -156,7 +156,7 @@ namespace AyaNova.Api.Controllers
|
||||
var values = Enum.GetValues(typeof(AyaType));
|
||||
foreach (AyaType t in values)
|
||||
{
|
||||
if (t.HasAttribute(typeof(ReportableBizObject)))
|
||||
if (t.HasAttribute(typeof(ReportableBizObjectAttribute)))
|
||||
{
|
||||
TranslationKeysToFetch.Add(t.ToString());
|
||||
}
|
||||
@@ -165,7 +165,7 @@ namespace AyaNova.Api.Controllers
|
||||
|
||||
foreach (AyaType t in values)
|
||||
{
|
||||
if (t.HasAttribute(typeof(ReportableBizObject)))
|
||||
if (t.HasAttribute(typeof(ReportableBizObjectAttribute)))
|
||||
{
|
||||
var tName = t.ToString();
|
||||
string name = string.Empty;
|
||||
|
||||
@@ -188,9 +188,9 @@ namespace AyaNova.Api.Controllers
|
||||
if (!ModelState.IsValid)
|
||||
return BadRequest(new ApiErrorResponse(ModelState));
|
||||
if (null == vendorId)
|
||||
return Ok(ApiOkResponse.Response(await ct.ViewPartRequestList.ToListAsync()));
|
||||
return Ok(ApiOkResponse.Response(await ct.ViewUnfulfilledPartRequestList.ToListAsync()));
|
||||
else
|
||||
return Ok(ApiOkResponse.Response(await ct.ViewPartRequestList.Where(z => z.WholesalerId == vendorId || z.AltWholesalerId == vendorId).ToListAsync()));
|
||||
return Ok(ApiOkResponse.Response(await ct.ViewUnfulfilledPartRequestList.Where(z => z.WholesalerId == vendorId || z.AltWholesalerId == vendorId).ToListAsync()));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user