示例#1
0
        public IHttpActionResult Post(Shipper shipper)
        {
            shipperRepository.Insert(shipper);
            string uri = Url.Link("GetShipperById", new { id = shipper.ShipperId });

            return(Created(uri, shipper));
        }