Пример #1
0
        public GearInspection UpdateInspection(GearInspection updatedInspection)
        {
            var inspection = gearInspections.SingleOrDefault(c => c.Id == updatedInspection.Id);

            {
                inspection.Date        = updatedInspection.Date;
                inspection.Gear        = updatedInspection.Gear;
                inspection.GearType    = updatedInspection.GearType;
                inspection.Inspector   = updatedInspection.Inspector;
                inspection.LabelNumber = updatedInspection.LabelNumber;
                inspection.Summary     = updatedInspection.Summary;
            }
            return(inspection);
        }
Пример #2
0
 public GearInspection AddInspection(GearInspection newInspection)
 {
     gearInspections.Add(newInspection);
     newInspection.Id = gearInspections.Max(i => i.Id) + 1;
     return(newInspection);
 }
Пример #3
0
 public GearInspection UpdateInspection(GearInspection updatedInspection)
 {
     throw new NotImplementedException();
 }
Пример #4
0
 public GearInspection AddInspection(GearInspection newInspection)
 {
     throw new NotImplementedException();
 }