Example #1
0
 public JsonResult IsCurrentPasswordCorrect(string currentPassword, int userId)
 {
     using (RentItServiceClient proxy = new RentItServiceClient())
     {
         if (proxy.IsCorrectPassword(userId, currentPassword))
         {
             return Json(true, JsonRequestBehavior.AllowGet);
         }
         return Json("The current password is wrong.", JsonRequestBehavior.AllowGet);
     }
 }