public IHttpActionResult UpdateShipper(ShipperModel existing) { var entity = new Shipper { CompanyName = existing.CompanyName, Phone = existing.Phone }; _repository.UpdateShipper(entity); return(Ok <ShipperModel>(existing)); }
public IHttpActionResult UpdateShipper(ShipperModel existing) { var entity = new Shipper { CompanyName = existing.CompanyName, Phone = existing.Phone }; _repository.UpdateShipper(entity); return(Ok <ShipperModel>(existing)); }