Пример #1
0
        public async Task <IHttpActionResult> GetProductById(int id)
        {
            var shipper = await _shipperService.GetByIdAsync(id);

            if (shipper != null)
            {
                return(Ok(shipper));
            }

            return(NotFound());
        }