Exemple #1
0
        public async Task <ActionResult <IEnumerable <Organizations> > > GetAllOrgs()
        {
            var response = await orgRepository.GetAllOrgs();

            var viewModel = mapper.Map <IEnumerable <Organizations> >(response);

            return(Ok(viewModel));
        }