public HttpResponseMessage UpdatePassword(ForgetCls model)
 {
     try
     {
         DataSet ds = null;
         ds = blObj.UpdatePassword(model);
         APIResponse response = new APIResponse();
         if (ds.Tables[0].Rows[0]["StatusCode"].ToString() == "200")
         {
             mail.UpdatePasswordMail(model.userid);
         }
         response.ResponseCode    = ds.Tables[0].Rows[0]["StatusCode"].ToString();
         response.ResponseMessage = ds.Tables[0].Rows[0]["Message"].ToString();
         return(Request.CreateResponse(HttpStatusCode.OK, response));
     }
     catch (Exception ex)
     {
         return(Request.CreateResponse(HttpStatusCode.ExpectationFailed, ex));
     }
 }