Exemplo n.º 1
0
 public ActionResult Edit(FormCollection collection, HttpPostedFileBase image)
 {
     ProfileModel profile = new ProfileModel(User.Identity.Name);
     profile = new ProfileModel(User.Identity.Name);
     UpdateModel(profile, collection);
     profile.Save();
     return RedirectToAction("Index");
 }
Exemplo n.º 2
0
 public ActionResult Index()
 {
     ProfileModel profile = new ProfileModel(User.Identity.Name);
     return View(profile);
 }