常用方法
常用方法
常用方法
常用方法
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>()); }