Ejemplo n.º 1
0
 public static ProjectBase GetProjectByName(string name)
 {
     if (ProjectBase.Name == name)
     {
         return(ProjectBase);
     }
     else
     {
         return(SyncedProjects.FirstOrDefault(project => project.Name == name));
     }
 }
Ejemplo n.º 2
0
 public static ProjectBase GetProjectByTypeId(string projectId)
 {
     return(ProjectBase.ProjectId == projectId ? ProjectBase : SyncedProjects.FirstOrDefault(syncedProject => syncedProject.ProjectId == projectId));
 }