This commit is contained in:
2020-09-22 23:06:30 +00:00
parent 1e3a7e7871
commit cd4ce9b129
6 changed files with 54 additions and 3 deletions

View File

@@ -185,9 +185,7 @@ namespace AyaNova.Biz
Report dbObject = await ct.Report.SingleOrDefaultAsync(z => z.Id == id);
ValidateCanDelete(dbObject);
if (HasErrors)
return false;
if (HasErrors)
return false;
return false;
ct.Report.Remove(dbObject);
await ct.SaveChangesAsync();
await EventLogProcessor.DeleteObjectLogAsync(UserId, BizType, dbObject.Id, dbObject.Name, ct);