public void DeleteProduct(Product product) { try { repositories.ProductRepository.DeleteProduct(product); } catch (Exception ex) { ErrorService.LogException(ex); } }
public void DeleteOrder(Order order) { try { repositories.OrderRepository.DeleteOrder(order); } catch (Exception ex) { ErrorService.LogException(ex); } }
public void DeleteShippingOption(ShippingOption shippingOption) { try { repositories.ShippingRepository.DeleteShippingOption(shippingOption); } catch (Exception ex) { ErrorService.LogException(ex); } }
public void DeleteOrderDetail(OrderDetail OrderDetail) { try { Repositories.OrderDetailRepository.DeleteOrderDetail(OrderDetail); } catch (Exception ex) { ErrorService.LogException(ex); } }
public void DeleteCartItem(CartItem cartItem) { try { repositories.CartRepository.DeleteCartItem(cartItem); } catch (Exception ex) { ErrorService.LogException(ex); } }
public IEnumerable <Product> SearchProducts(string searchString) { try { return(repositories.ProductRepository.SearchProducts(searchString)); } catch (Exception ex) { ErrorService.LogException(ex); return(null); } }
public Product GetProduct(int id) { try { return(repositories.ProductRepository.GetProduct(id)); } catch (Exception ex) { ErrorService.LogException(ex); return(null); } }
public IEnumerable <Product> GetAllProducts() { try { return(repositories.ProductRepository.GetAllProducts()); } catch (Exception ex) { ErrorService.LogException(ex); return(null); } }
public ShippingOption GetShippingOption(int id) { try { return(repositories.ShippingRepository.GetShippingOption(id)); } catch (Exception ex) { ErrorService.LogException(ex); return(null); } }
public IEnumerable <ShippingOption> GetAllShippingOptions() { try { return(repositories.ShippingRepository.GetAllShippingOptions()); } catch (Exception ex) { ErrorService.LogException(ex); return(null); } }
public Order GetOrder(int id) { try { return(repositories.OrderRepository.GetOrder(id)); } catch (Exception ex) { ErrorService.LogException(ex); return(null); } }
public IEnumerable <Order> GetUserOrders(string email) { try { return(repositories.OrderRepository.GetUserOrders(email)); } catch (Exception ex) { ErrorService.LogException(ex); return(null); } }
public CartItem GetCartItem(string email, int productId) { try { return(repositories.CartRepository.GetCartItem(email, productId)); } catch (Exception ex) { ErrorService.LogException(ex); return(null); } }
public CartItem GetCartItem(int id) { try { return(repositories.CartRepository.GetCartItem(id)); } catch (Exception ex) { ErrorService.LogException(ex); return(null); } }
public IEnumerable <CartItem> GetUserCartItems(string email, string includedTable = "") { try { return(repositories.CartRepository.GetUserCartItems(email, includedTable)); } catch (Exception ex) { ErrorService.LogException(ex); return(null); } }