public async Task UpdateItemsInUserCartAsync(Models.API.UserCart userCart) { if (userCart == null) { throw new ArgumentNullException(); } if (userCart.ItemIds == null && userCart.ItemRentalIds == null) { throw new ArgumentNullException(); } await userCartDataService.UpdateUserCartAsync(userCart); }
public async Task SaveUserCartAsync(Models.API.UserCart userCart) { if (userCart == null) { throw new ArgumentNullException(); } if (userCart.ItemIds == null) { throw new ArgumentNullException(); } await userCartDataService.SaveUserCartAsync(userCart); }