public UpdateInspectionGeneralAction(System.Data.Entity.DbContext context, IEquipmentActionRecord actionRecord, IGeneralInspectionModel Paramteres)
     : base(context)
 {
     Params   = Paramteres;
     _status  = ActionStatus.Close;
     _current = actionRecord;
 }
Beispiel #2
0
 public Action(DbContext context, IEquipmentActionRecord actionRecord, IGeneralInspectionModel Parameters)
 {
     _context = (UndercarriageContext)context;
     _current = actionRecord;
     if (Parameters.Id == 0)
     {
         Operation = new InsertInspectionGeneralAction(context, actionRecord, Parameters);
     }
     else
     {
         Operation = new UpdateInspectionGeneralAction(context, actionRecord, Parameters);
     }
 }