Beispiel #1
0
        public async Task <IEnumerable <ThemeAdminModel> > GetAllForAdminAsync()
        {
            var themes = _themeRepository.GetAll().Where(x => x.Status != ThemeStatus.Deleted);

            return(_mapper.Map <IEnumerable <ThemeAdminModel> >(themes));
        }
Beispiel #2
0
        public void Should_return_all_themes()
        {
            var actual = _sut.GetAll();

            Assert.AreEqual(2, actual.Count);
        }
Beispiel #3
0
 public IEnumerable <ThemeEntity> GetAllThemeEntities()
 {
     return(themeRepository.GetAll().Select(theme => theme.ToBllTheme()));
 }
Beispiel #4
0
 public async Task <Theme[]> GetAll(bool includeChildren = false)
 => await themeRepository.GetAll(includeChildren);
Beispiel #5
0
        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()));
 }