public static EmployeeShiftsModel EntityToModel(this EmployeeShifts entity, bool virtualActive = false)
        {
            try
            {
                EmployeeShiftsModel model = new EmployeeShiftsModel()
                {
                    DailyWages = entity.DailyWages,
                    EmployeeId = entity.EmployeeId,
                    ShiftId = entity.ShiftId,
                    IsActive = entity.IsActive,
                    Id = entity.Id
                };
                if (virtualActive)
                {
                    model.Shift = entity.Shift.EntityToModel();
                    model.Employee = entity.Employee.EntityToModel();

                }
                return model;
            }
            catch (Exception)
            {

                return new EmployeeShiftsModel();
            }
        }
 public ActionResult EmployeeShiftInsert(EmployeeShiftsModel empShiftModel)
 {
     EmployeeShifts emps = empShiftModel.ModelToEnity();
     emps.IsActive = true;
     _serviceEmployeeShifts.Insert(emps);
     return RedirectToAction("EmployeeShiftList");
 }