public ActionResult Index(DateTime?dateTime, int?departmentId)
        {
            var departments = new GetWorkDayViewModel
            {
                Departments = _departmentRepository.GetDepartments()
            };

            if (dateTime == null && departmentId == null)
            {
                return(View(departments));
            }
            else
            {
                var shiftIds   = _shiftRepository.GetShiftTypesFromShifts(dateTime, departmentId);
                var shifttypes = _shiftTypeRepository.GetListFromShiftTypes(shiftIds);
                return(RedirectToAction("GetWorkDay", new
                {
                    currentDatetime = dateTime,
                    currnetDpertmentId = departmentId,
                    departmentsToList = departments,
                    shiftToList = shifttypes
                }));
            }
        }