Exemplo n.º 1
0
 public Bug UpdateBug(Bug bug)
 {
     if (BugRepository.GetItem(bug.Id) != null)
     {
         return(BugRepository.UpdateItem(bug));
     }
     throw new Exception("Bug with id: " + bug.Id + " not found.");
 }