public ChangePassword ( int id ) : System.Web.Mvc.ActionResult | ||
id | int | |
Результат | System.Web.Mvc.ActionResult |
public ActionResult ChangePassword(int? id)
{
if (id == null)
{
return new HttpStatusCodeResult(HttpStatusCode.BadRequest);
}
var user = Context.Users.Find(id);
if (user == null)
{
return HttpNotFound();
}
return View();
}
AccountController::ChangePassword ( |