Exemplo n.º 1
0
 public ActionResult ChangePassword(Account account, int? userId)
 {
     if (userId.HasValue)
     {
         using (RentItServiceClient proxy = new RentItServiceClient())
         {
             proxy.UpdateUser(userId.Value, null, account.NewPassword, null);
         }
         return Redirect(Request.UrlReferrer.PathAndQuery);
     }
     return RedirectToAction("Index", "Home");
 }