Exemplo n.º 1
0
        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));
        }
Exemplo n.º 2
0
        public async Task <IActionResult> CurrentPayPeriodWorkDays()
        {
            var currentUser = await GetCurrentUserAsync();

            var workDays = await _timeSheetService.GetWorkDaysForCurrentPayPeriodAsync(currentUser);

            var model = new WorkDaysViewModel()
            {
                WorkDays = workDays
            };

            return(View(model));
        }
Exemplo n.º 3
0
        public WorkDaysPage()
        {
            InitializeComponent();

            BindingContext = viewModel = new WorkDaysViewModel();
        }