public ActionResult ChangePassword(string password) { int custid = Convert.ToInt32(Session["idUser"]); if (custid != 0) { var result = CustomerCRUD.UpdateCustomerPassword(custid, password); return(Json(result)); } else { return(RedirectToAction("Login")); } }