// GET: Group public async Task <IActionResult> Index() { var groups = await _groupHttpService.GetAllAsync(); if (groups == null) { return(Redirect("/Identity/Account/Login")); } return(View(groups)); }
// GET: Album/Create public async Task <IActionResult> Create() { var albumModel = new AlbumViewModel(await _groupService.GetAllAsync()); return(View(albumModel)); }