public ActionResult Create()
 {
     ViewData["BugPriorityId"] = new SelectList(bugPriorityRepository.GetAllBugPriorities(), "Id", "BugPriorityType");
     ViewData["BugStatusId"]   = new SelectList(bugStatusRepository.GetAllBugStatus(), "Id", "BugStatusType");
     ViewData["ProjectId"]     = new SelectList(projectRepository.GetAllProjects(), "Id", "Name");
     return(View());
 }
Пример #2
0
        public ActionResult Index()
        {
            var model = bugPriorityRepository.GetAllBugPriorities();

            return(View(model));
        }