Exemplo n.º 1
0
 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");
 }
Exemplo n.º 2
0
 public ActionResult HomeUser()
 {
     ProfileModel profile = new ProfileModel(User.Identity.Name);
     return View(profile);
 }