private void DeleteRepair(Repair e) { DataServiceRepair dsRepair = new DataServiceRepair(); RepairList.Remove(e); dsRepair.DeleteRepair(e); }
public async Task DeleteRepair(object repair) { var rep = repair as RepairModel; if (rep == null) { return; } await _repairsManager.RemoveRepair(rep.ArchitectureId, rep.RestorationKind, rep.RestorationDate); RepairList.Remove(rep); }