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