Exemple #1
0
        public IActionResult Tasks(string id)
        {
            var viewModel = new TasksPageViewModel
            {
                CurrentListId        = id,
                ToDoLists            = toDoService.GetAllCurrentUserLists(),
                CurrentListToDoItems = toDoService.GetAllItemsByListId(id)
            };

            return(View(viewModel));
        }
Exemple #2
0
 protected override void OnBindingContextChanged()
 {
     _vm = (TasksPageViewModel)BindingContext;
     TaskList.DayList = _vm.Days;
     TaskScrollView.BackgroundColor = _vm.BGColor;
 }