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

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

            Assert.AreEqual(2, actual.Count);
        }
Пример #3
0
 public IEnumerable <ThemeEntity> GetAllThemeEntities()
 {
     return(themeRepository.GetAll().Select(theme => theme.ToBllTheme()));
 }
Пример #4
0
 public async Task <Theme[]> GetAll(bool includeChildren = false)
 => await themeRepository.GetAll(includeChildren);
Пример #5
0
        public IEnumerable <ThemeAdminModel> GetAllForAdmin()
        {
            var themes = _themeRepository.GetAll();

            return(_mapper.Map <IEnumerable <ThemeAdminModel> >(themes));
        }
Пример #6
0
 /// <summary>
 /// Gets all the topics
 /// </summary>
 /// <returns>Theme Collection</returns>
 public IEnumerable <BllTheme> GetAll()
 {
     return(themeRepository.GetAll().Select(u => u.ToBllTheme()));
 }