Exemplo n.º 1
0
 public Epic AddEpic(int projectId, string epicTitle, string epicDescription)
 {
     if (_epicDAO.CheckTitle(projectId, epicTitle))
     {
         throw new CheckedException($"Epic {epicTitle} already exist.");
     }
     _projectDAO.AddEpic(projectId, epicTitle, epicDescription);
     return(_epicDAO.GetEpicByTitle(projectId, epicTitle));
 }