public void OnNavigatedTo(NavigationContext navigationContext) { try { UndoneProjects.Clear(); UndoneProjects.AddRange(_projectService.GetAllUndoneProjects(_store.GetCurrentUser().Id)); UnapprovedProjects.Clear(); UnapprovedProjects.AddRange(_projectService.GetAllUnapprovedProjects(_store.GetCurrentUser().Id)); } catch (CheckedException e) { ShowError("Error", e.Message); } }
private void Deny(int?taskId) { try { _projectService.DenyTask((int)taskId); UndoneProjects.Clear(); UndoneProjects.AddRange(_projectService.GetAllUndoneProjects(_store.GetCurrentUser().Id)); UnapprovedProjects.Clear(); UnapprovedProjects.AddRange(_projectService.GetAllUnapprovedProjects(_store.GetCurrentUser().Id)); } catch (CheckedException e) { ShowError("Error", e.Message); } }