Example #1
0
        public async Task <IActionResult> UploadMeme([FromBody] MemeUploadVM model)
        {
            string userId = User.Claims.First(c => c.Type == "UserID").Value;
            await _memeService.Upload(model, userId);

            return(Ok(new { successMessage = "New meme added" }));
        }