Exemplo n.º 1
0
 public Task <Repair> GetRepairById(int architectureId, RestorationKind restorationKind, DateTime restorationDate)
 {
     return(_repairs.SingleOrDefaultAsync(r =>
                                          r.ArchitectureId == architectureId &&
                                          r.RestorationKind == restorationKind &&
                                          r.RestorationDate == restorationDate));
 }
Exemplo n.º 2
0
 public Restoration(
     RestorationKind restoration,
     string periodicity,
     double outlays)
 {
     RestorationKind = restoration;
     Periodicity     = periodicity;
     Outlays         = outlays;
 }
Exemplo n.º 3
0
 public Repair(
     RestorationKind restorationKind,
     int architectureId,
     DateTime restorationDate,
     double restorationCost)
 {
     RestorationKind = restorationKind;
     ArchitectureId  = architectureId;
     RestorationCost = restorationCost;
     RestorationDate = restorationDate;
 }
Exemplo n.º 4
0
        public async Task RemoveRepair(int architectureId, RestorationKind restorationKind, DateTime restorationDate)
        {
            var repair = await GetRepairById(architectureId, restorationKind, restorationDate);

            await RemoveItemAsync(repair);
        }
 public Task RemoveRepair(int architectureId, RestorationKind restorationKind, DateTime restorationDate)
 {
     return(_repairsRepository.RemoveRepair(architectureId, restorationKind, restorationDate));
 }
 public Task <Repair> GetRepairById(int architectureId, RestorationKind restorationKind, DateTime restorationDate)
 {
     return(_repairsRepository.GetRepairById(architectureId, restorationKind, restorationDate));
 }
 public Task RemoveRestoration(RestorationKind restorationKind)
 {
     return(_restorationsRepository.RemoveItemAsync(restorationKind));
 }
 public Task <IEnumerable <Repair> > GetLinkedRepairs(RestorationKind restorationKind)
 {
     return(_restorationsRepository.GetLinkedRepairs(restorationKind));
 }
 public Task <Restoration> GetRestorationByRestorationKind(RestorationKind restorationKind)
 {
     return(_restorationsRepository.GetItemAsync(restorationKind));
 }