public ActionResult <Delivery> GetDelivery(int id) { var d = (Delivery)deliveryRepository.GetByID(id); if (d != null) { return(Ok(d)); } else { return(NotFound(null)); } }
public ActionResult <Delivery> GetDelivery(int id) { var d = (Delivery)deliveryRepository.GetByID(id); if (d != null) { return(Ok(d)); } else { return(NotFound(null)); } }