/// <summary> /// Updates the asynchronous. /// </summary> /// <param name="regionModel">The stylemodel.</param> /// <returns> /// UpdateAsync /// </returns> /// <exception cref="ArgumentNullException">category</exception> public async Task <int> UpdateAsync(PackageRegionModel regionModel) { if (regionModel == null) { throw new ArgumentNullException("city"); } return(await this.packageRegion.UpdateAsync(regionModel)); }
/// <summary> /// Inserts the asynchronous. /// </summary> /// <param name="regionModel">The region model.</param> /// <returns> /// InsertAsync /// </returns> /// <exception cref="ArgumentNullException">category</exception> public async Task <int> InsertAsync(PackageRegionModel regionModel) { if (regionModel == null) { throw new ArgumentNullException("region"); } return(await this.packageRegion.InsertAsync(regionModel)); }