public ActionResult RepairAppt(RepairApptModel model)
        {
            if (ModelState.IsValid)
            {
                model.ScheduledTime = DateTime.Parse(model.ScheduledDate + " " + model.ScheduledTimes);

                var entity = model.ToEntity();
                //entity.ScheduledTime = scheduledDate;
                _repairApptService.Add(entity);

            }
            model.Dates = TimeRange.GetFutureDates();
            model.Times = TimeRange.GetWorkHours();
            return PartialView(model);
        }
 public ActionResult RepairAppt()
 {
     var model = new RepairApptModel { Dates = TimeRange.GetFutureDates(), Times = TimeRange.GetWorkHours() };
     return PartialView(model);
 }