public IHttpActionResult Get([FromUri] int providerId) { if (providerId == 0) { return(BadRequest($"Provider id cannot be null")); } var result = ResourcesServices.Find(providerId); if (result == null) { return(NotFound()); } return(Ok(result)); }
public IHttpActionResult Get([FromUri] int providerId) { if (providerId == 0) { return(BadRequest($"Provider id cannot be null")); } var result = ResourcesServices.Find(providerId); if (result == null) { return(NotFound()); } return(Ok(result)); }