private void DeleteRepair(Repair e)
        {
            DataServiceRepair dsRepair = new DataServiceRepair();

            RepairList.Remove(e);
            dsRepair.DeleteRepair(e);
        }
コード例 #2
0
        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);
        }