Beispiel #1
0
        public async Task <ActionResult <Shipper> > Get(Guid id)
        {
            try
            {
                var result = await shipperRepo.RetrieveAsync(id);

                if (result == null)
                {
                    return(NotFound());
                }
                return(Ok(result));
            }
            catch (Exception)
            {
                return(BadRequest());
            }
        }