//
 // GET: /Projects/Defects/
 public ActionResult Index(int? projectId, DefectStatus[] defectStatuses)
 {
     if (projectId == null)
     {
         return View(new List<Defect>());
     }
     Project project = _projectDaoFactory.ProjectDao.Get(projectId.Value);
     IList<Defect> defect = _projectDaoFactory.DefectDao.GetDefects(project,
                                                                    Enum.GetValues(typeof(DefectStatus)).Cast
                                                                        <DefectStatus>().ToArray());
     return View(defect);
 }
Exemplo n.º 2
0
 public DefectResource(string description, DefectStatus status)
     : this()
 {
     Description = description;
     Status = status;
 }