Exemplo n.º 1
0
 public HttpResponseMessage Fundtrasfer(dynamic SearchForm)
 {
     try
     {
         string Amount = string.Empty;
         string UserID = string.Empty;
         string PregNo = string.Empty;
         string SKey   = string.Empty;
         SKey   = (string)SearchForm.SKey;
         UserID = (string)SearchForm.UserID;
         Amount = (string)SearchForm.Amount;
         PregNo = (string)SearchForm.PregNo;
         UserClass Obj = new UserClass();
         DataTable DT  = new DataTable();
         Obj.FN_Fundtrasfer(UserID, PregNo, Amount, SKey);
         string OUtMsg = Obj.OutMsg;
         return(Request.CreateResponse(HttpStatusCode.OK, OUtMsg));
     }
     catch (Exception ex)
     {
         return(Request.CreateErrorResponse(HttpStatusCode.InternalServerError, "500_INTERNAL_SERVER_ERROR"));
     }
 }