public async Task <IHttpActionResult> AddShipper([FromBody] UpdateShipperRequest createRequest) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } var shipper = await _shipperService.CreateShipperAsync(createRequest); var location = string.Format("/api/shippers/{0}", shipper.ShipperID); return(Created <Shipper>(location, shipper)); }