Exemplo n.º 1
0
        //public IEnumerable<Organisation> GetAllOrganisation() => organisationRepository.GetAllOrganisation();
        public ActionResult GetAllOrganisation()
        {
            List <OrganisationDto> organisations = new List <OrganisationDto>();

            organisations = organisationRepository.GetAllOrganisation();
            if (organisations.Count == 0)
            {
                return(NotFound());
            }
            return(Ok(organisations));
        }