Esempio n. 1
0
        public async Task <ActionResult <CountryDto> > DeleteCountry(int id)
        {
            var country = await _repository.DeleteCountryAsync(id);

            if (country == null)
            {
                return(NotFound());
            }

            await _repository.CommitAsync();

            return(country.Adapt <CountryDto>());
        }