Example #1
0
        public async Task <IHttpActionResult> CreateShipper([FromBody] Shipper shipper)
        {
            if (ModelState.IsValid)
            {
                var result = await _shipperService.CreateAsync(shipper);

                return(Ok(result));
            }

            return(BadRequest());
        }