Exemplo n.º 1
0
 public static CreateSuggestionModel UpdateProjectsList(CreateSuggestionModel model)
 {
     model.Projects = ProjectsRepositories.GetAllProjects();
     model.Projects.Insert(0, (new Project {
         Name = "General", Id = 0
     }));
     return(model);
 }
Exemplo n.º 2
0
        public static CreateSuggestionModel GetEditSuggestionModel(int suggestionId)
        {
            CreateSuggestionModel model = new CreateSuggestionModel();

            model.Projects = ProjectsRepositories.GetAllProjects();
            model.Projects.Insert(0, (new Project {
                Name = "General", Id = 0
            }));
            model.Suggestion = SuggestionsRepositories.GetSuggestionById(suggestionId);
            return(model);
        }