public ActionResult BiographyEducation(BiographyEducationViewModel model) { var user = UserManager.FindByIdAsync(User.Identity.GetUserId()); user.Result.University = model.University; user.Result.Major = model.Major; var result = UserManager.UpdateAsync(user.Result); return Json(new { result = true, model }); }
public ActionResult BiographyEducation() { var login = UserManager.FindByIdAsync(User.Identity.GetUserId()); var model = new BiographyEducationViewModel { University = login.Result.University, Major = login.Result.Major }; return PartialView("_BiographyEducationPartial", model); }