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

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