Exemple #1
0
 private async Task Fetch(int projectId, bool getRoles)
 {
     if (projectId == -1)
     {
         Project = await ProjectEdit.NewProjectAsync();
     }
     else
     {
         Project = await ProjectEdit.GetProjectAsync(projectId);
     }
     if (getRoles)
     {
         RoleList = RoleList.GetCachedList();
     }
 }
Exemple #2
0
 private async Task DataPortal_Fetch(Criteria criteria)
 {
     if (criteria.ProjectId == -1)
     {
         Project = await ProjectEdit.NewProjectAsync();
     }
     else
     {
         Project = await ProjectEdit.GetProjectAsync(criteria.ProjectId);
     }
     if (criteria.GetRoles)
     {
         RoleList = RoleList.GetCachedList();
     }
 }