This commit is contained in:
2020-12-08 00:22:02 +00:00
parent 81e1d19dc0
commit 294fded350
17 changed files with 68 additions and 2 deletions

View File

@@ -152,6 +152,10 @@ namespace AyaNova.Biz
try
{
Vendor dbObject = await ct.Vendor.SingleOrDefaultAsync(z => z.Id == id);
if (dbObject == null){
AddError(ApiErrorCode.NOT_FOUND);
return false;
}
ValidateCanDelete(dbObject);
if (HasErrors)
return false;