public virtual async Task <WishListSummaryViewModel> RemoveLineItemAsync(RemoveLineItemParam param) { if (param == null) { throw new ArgumentNullException("param", "param is required"); } if (string.IsNullOrWhiteSpace(param.Scope)) { throw new ArgumentException("param.Scope is required", "param"); } if (param.CultureInfo == null) { throw new ArgumentException("param.CultureInfo is required", "param"); } if (string.IsNullOrWhiteSpace(param.CartName)) { throw new ArgumentException("param.CartName is required", "param"); } if (param.LineItemId == Guid.Empty) { throw new ArgumentException("param.LineItemId is required", "param"); } if (param.CustomerId == Guid.Empty) { throw new ArgumentException("param.CustomerId is required", "param"); } if (string.IsNullOrWhiteSpace(param.BaseUrl)) { throw new ArgumentException("param.BaseUrl is required", "param"); } var wishList = await WishListRepository.RemoveLineItemAsync(param).ConfigureAwait(false); return(CreateSummaryWishListViewModel(new CreateWishListViewModelParam() { WishList = wishList, CultureInfo = param.CultureInfo, BaseUrl = param.BaseUrl })); }