public async Task <IEnumerable <ThemeAdminModel> > GetAllForAdminAsync() { var themes = _themeRepository.GetAll().Where(x => x.Status != ThemeStatus.Deleted); return(_mapper.Map <IEnumerable <ThemeAdminModel> >(themes)); }
public void Should_return_all_themes() { var actual = _sut.GetAll(); Assert.AreEqual(2, actual.Count); }
public IEnumerable <ThemeEntity> GetAllThemeEntities() { return(themeRepository.GetAll().Select(theme => theme.ToBllTheme())); }
public async Task <Theme[]> GetAll(bool includeChildren = false) => await themeRepository.GetAll(includeChildren);
public IEnumerable <ThemeAdminModel> GetAllForAdmin() { var themes = _themeRepository.GetAll(); return(_mapper.Map <IEnumerable <ThemeAdminModel> >(themes)); }
/// <summary> /// Gets all the topics /// </summary> /// <returns>Theme Collection</returns> public IEnumerable <BllTheme> GetAll() { return(themeRepository.GetAll().Select(u => u.ToBllTheme())); }