public async Task <ActionResult> UploadProfileImage(string image) { var userId = User.Identity.GetUserId(); var result = await UserManager.AddProfileImageAsync(userId, image); if (result.Succeeded) { return(RedirectToAction("Index", "LoggedIn")); } else { return(RedirectToAction("Index")); } }