public IHttpActionResult GetProviderWithUnits(int id) { var helper = new ProvidersHelper(); var result = helper.GetProviderWithUnits(id); if (result != null) { return(Ok(result)); } return(NotFound()); }