public static bool DataCheck(Program.RequestDTO DTO)
 {
     if (DTO.hours <= 0 || DTO.factor < 0 || DTO.rentCost <= 0)
     {
         return(false);
     }
     return(true);
 }
示例#2
0
 public Counter(Program.RequestDTO DTO)
 {
     this.type     = DTO.type;
     this.hours    = DTO.hours;
     this.factor   = DTO.factor;
     this.rentCost = DTO.rentCost;
     factory       = TypeParser.GetFactory(DTO.type, DTO.factor);
 }