public async Task Update(CountryArgModel model) { context.Countries.Update(_mapper.Map <CountryArgModel, Country>(model)); await context.SaveChangesAsync(); }
public async Task UpdateCountry(CountryArgModel model) { await _service.Update(model); }
public async Task Add(CountryArgModel model) { await context.Countries.AddAsync(_mapper.Map <CountryArgModel, Country>(model)); await context.SaveChangesAsync(); }
public async Task AddCountry(CountryArgModel model) { await _service.Add(model); }