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; } }
public ScrumThemeServiceModel getScrumTheme(int id) { ScrumThemeRepository repo = new ScrumThemeRepository(entities); ScrumTheme scrumTheme = repo.Get(id); return ScrumUtil.mapScrumThemeEntityToModel(scrumTheme); }