public bool Delete(T record)
        {
            ValidateBeforeDelete(record);
            var ok = _repo.Delete(record);

            ExecuteAfterSave(record, true);
            return(ok);
        }
Beispiel #2
0
 protected virtual void DeleteRecord(ISimpleRepo <TDTO> db, TDTO dto)
 {
     if (CanDeletetRecord(dto))
     {
         db.Delete(dto);
     }
     ReloadFromDB();
 }
Beispiel #3
0
 protected virtual void DeleteRecord(ISimpleRepo <TDTO> db, TDTO dto) => db.Delete(dto);
Beispiel #4
0
 protected virtual void DeleteRecords(ISimpleRepo <TDTO> db, List <TDTO> items) => db.Delete(items);