/// <summary> /// Updates the asynchronous. /// </summary> /// <param name="stylemodel">The stylemodel.</param> /// <returns> /// UpdateAsync /// </returns> /// <exception cref="ArgumentNullException">category</exception> public async Task <int> UpdateAsync(PackageTravelStyleModel stylemodel) { if (stylemodel == null) { throw new ArgumentNullException("city"); } return(await this.travelSttyleRepository.UpdateAsync(stylemodel)); }
/// <summary> /// Deletes the asynchronous. /// </summary> /// <param name="travelstyle">The travelstyle.</param> /// <returns> /// DeleteAsync /// </returns> /// <exception cref="ArgumentNullException">category</exception> public async Task <int> DeleteAsync(PackageTravelStyleModel travelstyle) { if (travelstyle == null) { throw new ArgumentNullException("category"); } return(await this.travelSttyleRepository.DeleteAsync(travelstyle)); }