public IHttpActionResult Get(int id) { var route = db.GetRouteById(id); if (route == null) { return(NotFound());//returns 404 } return(Ok(route));//returns 200 with dataS }
public IHttpActionResult Get(int id) { var route = db.GetRouteById(id); if (route == null) { return(NotFound());//returns 404 } return(Ok(route));//returns 200 with dataS }