Esempio n. 1
0
 public bool deleteScrumEpic(int id)
 {
     ScrumEpicRepository repo = new ScrumEpicRepository(entities);
     ScrumEpic scrumEpic = repo.Get(id);
     try {
         repo.Delete(scrumEpic);
         return true;
     }
     catch (Exception ex) {
         _errorMessage = ex.Message;
         return false;
     }
 }
Esempio n. 2
0
 public ScrumEpicServiceModel getScrumEpic(int id)
 {
     ScrumEpicRepository repo = new ScrumEpicRepository();
     ScrumEpic scrumEpic = repo.Get(id);
     return ScrumUtil.mapScrumEpicEntityToModel(scrumEpic);
 }