Exemple #1
0
        public async Task <IActionResult> SetUserImage(string email, IFormFile newImage)
        {
            if (newImage != null)
            {
                await _imageLogic.AddImageToUserAsync(newImage, email, _env.WebRootPath);
            }

            return(RedirectToAction("UserProfile", "User", new { email }));
        }