protected override async Task RefreshFields() { Owner = await StudentViewModel.Get(model.OwnerId); Participants = new ObservableCollection <ProjectParticipantViewModel>(await ProjectParticipantViewModel.Where(p => p.ProjectId == model.Id)); Contents = new ObservableCollection <ProjectContentViewModel>(await ProjectContentViewModel.Where(c => c.ProjectId == model.Id)); Assignment = await AssignmentViewModel.Get(model.AssignmentId); }
public override async Task LoadProjects() { var tmp = ProjectParticipantViewModel.Where(x => x.StudentId == sId); Projects = (await tmp).Select(a => a.Project); }