Beispiel #1
0
        public async Task <IActionResult> Index()
        {
            var model = await Task.Run(() => _languageFacade.GetAllForAdmin(SiteId));

            return(View(model));
        }
        public async Task <IActionResult> Get()
        {
            var languages = await Task.Run(() => _languageFacade.GetAllForAdmin(SiteId));

            return(Ok(languages));
        }
Beispiel #3
0
        public void Should_return_all_models_for_admin()
        {
            var models = _sut.GetAllForAdmin(_siteId);

            Assert.IsNotEmpty(models);
        }