Example #1
0
        public async Task <ActionResult <Organization> > GetAOrg([FromRoute] int id)
        {
            var response = await orgRepository.GetAOrg(id);

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

            return(Ok(viewModel));
        }