Ejemplo n.º 1
0
 public Issue PostIssue([FromBody] Issue issue, int workItemId)
 {
     try
     {
         var newIssue = _issueRepository.Add(issue);
         newIssue.WorkItem = _workItemRepository.AddIssue(newIssue.Id, workItemId);
         return(newIssue);
     }
     catch (Exception e)
     {
         throw new Exception(e.Message);
     }
 }