public IHttpActionResult PostAdd(ProductPricing item) { if (!ModelState.IsValid) return BadRequest(ModelState); productPricingManagement.Insert(item); return Ok(); }
public IHttpActionResult PutUpdate(Guid id, ProductPricing item) { if (!ModelState.IsValid) return BadRequest(ModelState); if (id != item.Id) return BadRequest(); productPricingManagement.Update(item); return Ok(); }