public async Task <IActionResult> CoverPicturesGalleryForUser(string userName) { var user = await this.userManager.FindByNameAsync(userName); var coverPictures = await this.newsFeedService.GetAllCoverPicturesAsync <CoverGalleryViewModel>(user.Id); var viewModel = new CoverGalleryResponseViewModel { UserCoverPictures = coverPictures, }; return(this.View(viewModel)); }
public async Task <IActionResult> CoverPicturesGallery() { var user = await this.userManager.GetUserAsync(this.User); var coverPictures = await this.newsFeedService.GetAllCoverPicturesAsync <CoverGalleryViewModel>(user.Id); var viewModel = new CoverGalleryResponseViewModel { UserCoverPictures = coverPictures, }; return(this.View(viewModel)); }