Ejemplo n.º 1
0
        public IActionResult ShowSchedule(ShowScheduleViewModel showScheduleViewModel)
        {
            var viewModel  = new ShowScheduleViewModel();
            var weeknumber = showScheduleViewModel.Weeknumber;
            var userId     = Convert.ToInt32(Convert.ToString(User.Claims.Where(claim => claim.Type == "Id").Select(claim => claim.Value).SingleOrDefault()));

            viewModel.Days = _shiftLogic.ShowSchedule(weeknumber, userId);
            return(PartialView(viewModel));
        }
Ejemplo n.º 2
0
 public IActionResult MySchedule(ShowScheduleViewModel viewModel)
 {
     viewModel.Weeks = _weekLogic.GetThisWeekPlusTwoWeeks();
     return(View(viewModel));
 }