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

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