public void UpdateCountry(Country country) { var table = GetCountriesTable(); TableOperation insertOperation = TableOperation.InsertOrMerge(Mapper.Map<CountryTableEntity>(country)); table.Execute(insertOperation); }
public void AddCountry(Country country) { var table = GetCountriesTable(); var entity = Mapper.Map<CountryTableEntity>(country); TableOperation insertOperation = TableOperation.InsertOrMerge(entity); table.Execute(insertOperation); }