This commit is contained in:
2020-12-04 00:40:07 +00:00
parent 463fc06a1e
commit 3cb2ea7114
2 changed files with 9 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
# VENDOR-EDIT Placeholder
This is a placeholder page for sections that are not written yet

View File

@@ -154,6 +154,12 @@ namespace AyaNova.Biz
await ValidateCanDelete(dbObject);
if (HasErrors)
return false;
//todo: delete contacts and customer notes
//see workorder* collections and delete for transactional inclusion etc
//Will need to possibly display refintegrity error from the *linked* object delete attemp, i.e. Contact for here
//so should test that out so that it flows to the UI so user understands they can't delete the Customer due to a Contact having links to other objects
ct.Customer.Remove(dbObject);
await ct.SaveChangesAsync();