public async Task <bool> UpsertPrice(string SKU, PricingRow Price) { SKU = HttpUtility.UrlEncode(SKU); RestRequest elm = CreateRequest("Products/{SKU}/Prices", Method.POST, Price); elm.AddParameter("SKU", SKU, ParameterType.UrlSegment); IRestResponse resp = await Client.ExecutePostTaskAsync(elm); if (resp.StatusCode == HttpStatusCode.OK || resp.StatusCode == HttpStatusCode.NoContent) { return(true); } else if (resp.StatusCode == HttpStatusCode.Unauthorized) { throw new UnauthorizedException(); } else { throw new eDockAPIException(); } }
public PricingRowChangeEvent(PricingRow row, global::System.Data.DataRowAction action) { this.eventRow = row; this.eventAction = action; }