コード例 #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");
 }
コード例 #2
0
 public ActionResult HomeUser()
 {
     ProfileModel profile = new ProfileModel(User.Identity.Name);
     return View(profile);
 }