Exemplo n.º 1
0
        public async Task <ActionResult <Organization> > AddAOrg([FromBody] Organization org)
        {
            var response = await orgRepository.AddAOrg(org);

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

            return(Created("GetAOrg", viewModel));
        }