Esempio n. 1
0
        public async Task <IActionResult> Get(string title)
        {
            if (String.IsNullOrWhiteSpace(title))
            {
                var memes = await _memeService.GetAllAsync();

                return(Json(memes));
            }
            var meme = await _memeService.GetAsync(title);

            return(Json(meme));
        }