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()); } }
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()); } }