public ActionResult UserOpt(FormCollection collection, HttpPostedFileBase image) { ProfileModel profile = new ProfileModel(User.Identity.Name); profile = new ProfileModel(User.Identity.Name); UpdateModel(profile, collection); profile.Save(); return RedirectToAction("UserOpt"); }
public ActionResult HomeUser() { ProfileModel profile = new ProfileModel(User.Identity.Name); return View(profile); }