Ejemplo n.º 1
0
        public bool deleteScrumTheme(int id)
        {
            ScrumThemeRepository repo = new ScrumThemeRepository(entities);
            ScrumTheme scrumTheme = repo.Get(id);

            try {
                repo.Delete(scrumTheme);
                return true;
            }
            catch (Exception ex) {
                _errorMessage = ex.Message;
                return false;
            }
        }
Ejemplo n.º 2
0
 public ScrumThemeServiceModel getScrumTheme(int id)
 {
     ScrumThemeRepository repo = new ScrumThemeRepository(entities);
     ScrumTheme scrumTheme = repo.Get(id);
     return ScrumUtil.mapScrumThemeEntityToModel(scrumTheme);
 }