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"); }
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"); }