Guest User

Untitled

a guest
Jun 22nd, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. public interface IWebStoreCartManager : IServiceContractBase
  2. {
  3. Cart SaveCartItem(int catalogId, int productId, int quantity);
  4. Cart RemoveCartItem(int catalogId, int productId);
  5. Cart ShowCart(int catalogId);
  6. Cart UpdateBillingInfo(int catalogId, Address billingInfo, bool shippingSameAsBilling);
  7. Cart UpdateShippingInfo(int catalogId, Address shippingInfo, bool billingSameAsShipping);
  8. }
  9.  
  10.  
  11. public class Cart
  12. {
  13. public int Id { get; set; }
  14. public Address BillingAddress { get; set; }
  15. public CartItem[] CartItems { get; set;}
  16. }
  17.  
  18. public class CartItems
  19. {
  20. public int Id { get; set; }
  21. }
  22.  
  23. public class Address
  24. {
  25. public string First { get; set; }
  26. public string Last { get; set; }
  27. public string EmailAddress { get; set; }
  28. public string Addr1 { get; set; }
  29. public string Addr2 { get; set; }
  30. public string City { get; set; }
  31. public string State { get; set; }
  32. public string Postal { get; set; }
  33. }
Add Comment
Please, Sign In to add comment