public ActionResult SaveOvertime(Overtime overtime)
        {
            SaveOvertimeControl uco = new SaveOvertimeControl();

            overtime = uco.Save(overtime);
            return(View("NewOvertime", overtime));
        }
        public ActionResult NewOvertime(NewOverTimeViewModel model)
        {
            if (ModelState.IsValid == false)
            {
                return(View("NewOvertime", model));
            }

            OverTime dto = ConvertToDto(model);

            SaveOvertimeControl uco = new SaveOvertimeControl();

            dto = uco.Save(dto);

            NewOverTimeViewModel vm = ConverToViewModel(dto);

            return(View("NewOvertime", vm));
        }