// GET: Group
        public async Task <IActionResult> Index()
        {
            var groups = await _groupHttpService.GetAllAsync();

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

            return(View(albumModel));
        }