Example #1
0
        public async Task <IActionResult> MemeByIdAsync(string id)
        {
            if (string.IsNullOrWhiteSpace(id))
            {
                return(NotFound());
            }
            // TODO: fix
            try
            {
                MemeDto meme = await _memeService.GetMemeAsync(id);

                return(View("SharedMemeExpanded", meme));
            }
            catch (Exception)
            {
                return(NotFound());
            }
        }