예제 #1
0
 public void DeleteProduct(Product product)
 {
     try
     {
         repositories.ProductRepository.DeleteProduct(product);
     }
     catch (Exception ex)
     {
         ErrorService.LogException(ex);
     }
 }
예제 #2
0
 public void DeleteOrder(Order order)
 {
     try
     {
         repositories.OrderRepository.DeleteOrder(order);
     }
     catch (Exception ex)
     {
         ErrorService.LogException(ex);
     }
 }
예제 #3
0
 public void DeleteShippingOption(ShippingOption shippingOption)
 {
     try
     {
         repositories.ShippingRepository.DeleteShippingOption(shippingOption);
     }
     catch (Exception ex)
     {
         ErrorService.LogException(ex);
     }
 }
예제 #4
0
 public void DeleteOrderDetail(OrderDetail OrderDetail)
 {
     try
     {
         Repositories.OrderDetailRepository.DeleteOrderDetail(OrderDetail);
     }
     catch (Exception ex)
     {
         ErrorService.LogException(ex);
     }
 }
예제 #5
0
 public void DeleteCartItem(CartItem cartItem)
 {
     try
     {
         repositories.CartRepository.DeleteCartItem(cartItem);
     }
     catch (Exception ex)
     {
         ErrorService.LogException(ex);
     }
 }
예제 #6
0
 public IEnumerable <Product> SearchProducts(string searchString)
 {
     try
     {
         return(repositories.ProductRepository.SearchProducts(searchString));
     }
     catch (Exception ex)
     {
         ErrorService.LogException(ex);
         return(null);
     }
 }
예제 #7
0
 public Product GetProduct(int id)
 {
     try
     {
         return(repositories.ProductRepository.GetProduct(id));
     }
     catch (Exception ex)
     {
         ErrorService.LogException(ex);
         return(null);
     }
 }
예제 #8
0
 public IEnumerable <Product> GetAllProducts()
 {
     try
     {
         return(repositories.ProductRepository.GetAllProducts());
     }
     catch (Exception ex)
     {
         ErrorService.LogException(ex);
         return(null);
     }
 }
예제 #9
0
 public ShippingOption GetShippingOption(int id)
 {
     try
     {
         return(repositories.ShippingRepository.GetShippingOption(id));
     }
     catch (Exception ex)
     {
         ErrorService.LogException(ex);
         return(null);
     }
 }
예제 #10
0
 public IEnumerable <ShippingOption> GetAllShippingOptions()
 {
     try
     {
         return(repositories.ShippingRepository.GetAllShippingOptions());
     }
     catch (Exception ex)
     {
         ErrorService.LogException(ex);
         return(null);
     }
 }
예제 #11
0
 public Order GetOrder(int id)
 {
     try
     {
         return(repositories.OrderRepository.GetOrder(id));
     }
     catch (Exception ex)
     {
         ErrorService.LogException(ex);
         return(null);
     }
 }
예제 #12
0
 public IEnumerable <Order> GetUserOrders(string email)
 {
     try
     {
         return(repositories.OrderRepository.GetUserOrders(email));
     }
     catch (Exception ex)
     {
         ErrorService.LogException(ex);
         return(null);
     }
 }
예제 #13
0
 public CartItem GetCartItem(string email, int productId)
 {
     try
     {
         return(repositories.CartRepository.GetCartItem(email, productId));
     }
     catch (Exception ex)
     {
         ErrorService.LogException(ex);
         return(null);
     }
 }
예제 #14
0
 public CartItem GetCartItem(int id)
 {
     try
     {
         return(repositories.CartRepository.GetCartItem(id));
     }
     catch (Exception ex)
     {
         ErrorService.LogException(ex);
         return(null);
     }
 }
예제 #15
0
 public IEnumerable <CartItem> GetUserCartItems(string email, string includedTable = "")
 {
     try
     {
         return(repositories.CartRepository.GetUserCartItems(email, includedTable));
     }
     catch (Exception ex)
     {
         ErrorService.LogException(ex);
         return(null);
     }
 }