public async Task <IHttpActionResult> CreateShipper([FromBody] Shipper shipper) { if (ModelState.IsValid) { var result = await _shipperService.CreateAsync(shipper); return(Ok(result)); } return(BadRequest()); }
public async Task <IHttpActionResult> CreateShipper([FromBody] Shipper shipper) { if (ModelState.IsValid) { var result = await _shipperService.CreateAsync(shipper); return(Ok(result)); } return(BadRequest()); }