Exemplo n.º 1
0
 public HttpResponseMessage SynInvoiceToClient(string LoginName, string Password, int StoreID)
 {
     SynDataServerToClient _cls = new SynDataServerToClient();
         var data = _cls.GetInvoiceForSyn(LoginName, Password, StoreID);
         if (data!=null)
             return Request.CreateResponse(HttpStatusCode.OK, data);
         else
             return Request.CreateErrorResponse(HttpStatusCode.ExpectationFailed, "Not ok");
 }
Exemplo n.º 2
0
 public HttpResponseMessage UpdateInvoiceAfterSyn(string LoginName, string Password, int StoreID, List<SynInvoice> listInvoice)
 {
     bool IsResult = false;
         SynDataServerToClient _cls = new SynDataServerToClient();
         IsResult = _cls.UpdateInvoiceAfterSyn(LoginName, Password, StoreID, listInvoice);
         if (IsResult)
             return Request.CreateResponse(HttpStatusCode.OK, true);
         else
             return Request.CreateErrorResponse(HttpStatusCode.ExpectationFailed, "Not ok");
 }