public static bool DataCheck(Program.RequestDTO DTO) { if (DTO.hours <= 0 || DTO.factor < 0 || DTO.rentCost <= 0) { return(false); } return(true); }
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); }