public IHttpActionResult GetAllCohort() { CohortService cohortService = CreateCohortService(); var cohorts = cohortService.GetCohorts(); return(Ok(cohorts)); }