Example #1
0
        public async Task <IActionResult> Current(string id)
        {
            var userId    = User.FindFirst(ClaimTypes.NameIdentifier).Value;
            var viewModel = await obituaryService.GetCurrentAsync(id);

            var userPictures = userPictureService.AllUserPictures(userId);

            viewModel.UserPictures = userPictures;

            return(View(viewModel));
        }
Example #2
0
        public IActionResult AllUserPictures()
        {
            var viewModel = userPictureService.AllUserPictures(UserId);

            return(View(viewModel));
        }