Esempio n. 1
0
 public ShiftListContentPage(ShiftListViewModel model, bool showsDiets)
 {
     InitializeComponent();
     _viewModel     = model;
     BindingContext = model;
     ShowsDiets     = showsDiets;
 }
Esempio n. 2
0
        public async Task <ActionResult> GetGroupShifts(string groupId)
        {
            var shifts = await this.shiftService.GetAllShiftsByGroupAsync <ShiftCalendarViewModel>(groupId);

            var jsonObject = new ShiftListViewModel()
            {
                ShiftCount = shifts.Count,
                Shifts     = shifts.ToArray(),
            };

            return(this.Ok(jsonObject));
        }