public IActionResult Get() { List <Organization> orgs = _srv.AllOrgs(); if (orgs.Count > 0) { return(Ok(orgs)); } return(NotFound("No organizations exist!")); }
public IActionResult Get() { List <Organization> orgs = _srv.AllOrgs(); if (orgs.Count > 0) { return(Ok(orgs)); } return(NotFound("No organizations exist!")); }