Exemple #1
0
        public async Task <ActionResult <Organization> > UpdateAOrg([FromRoute] int id, string name)
        {
            var response = await orgRepository.UpdateAOrg(id, name);

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

            return(Ok(viewModel));
        }