public PartialViewResult Shift_Days(int Id) { WorkDaysViewModel WorkDaysViewModel = new WorkDaysViewModel(); WorkDaysViewModel.ShiftId = Id; WorkDaysViewModel.DefaultDays = db.SP_WorkDays_Select().ToList(); WorkDaysViewModel.ShiftDays = db.SP_Select_Shift_Days(Id).ToList(); return(PartialView("_Shift_WorkDays", WorkDaysViewModel)); }
public async Task <IActionResult> CurrentPayPeriodWorkDays() { var currentUser = await GetCurrentUserAsync(); var workDays = await _timeSheetService.GetWorkDaysForCurrentPayPeriodAsync(currentUser); var model = new WorkDaysViewModel() { WorkDays = workDays }; return(View(model)); }
public WorkDaysPage() { InitializeComponent(); BindingContext = viewModel = new WorkDaysViewModel(); }