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)); }
public void Should_return_all_models_for_admin() { var models = _sut.GetAllForAdmin(_siteId); Assert.IsNotEmpty(models); }