Beispiel #1
0
 public IEnumerable <ProjectModel> Get(int id)
 {
     if (id != 0)
     {
         List <ProjectModel> list = new List <ProjectModel>();
         list.Add(JsonProjectService.GetProjectById(id));
         IEnumerable <ProjectModel> en = list;
         return(en);
     }
     else
     {
         return(JsonProjectService.GetProjects());
     }
 }
Beispiel #2
0
 public void OnGet()
 {
     Projects = JsonProjectService.GetProjects();
 }