Beispiel #1
0
 public SalesOrderDataObjectList GetAllSalesOrders()
 {
     try
     {
         return(_orderServiceImpl.GetAllSalesOrders());
     }
     catch (Exception ex)
     {
         throw new FaultException <FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
     }
 }
 public List <Product> CreateProducts(List <Product> productDataObjects)
 {
     try
     {
         return(productServiceImpl.CreateProducts(productDataObjects));
     }
     catch (Exception ex)
     {
         throw new FaultException <FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
     }
 }
 public List <Product> GetFeaturedProducts(Int32 count)
 {
     try
     {
         return(productServiceImpl.GetFeaturedProducts(count));
     }
     catch (Exception ex)
     {
         throw new FaultException <FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
     }
 }
Beispiel #4
0
 public OrderDto Checkout(Guid customerId)
 {
     try
     {
         return(_orderServiceImp.Checkout(customerId));
     }
     catch (Exception ex)
     {
         throw new FaultException <FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
     }
 }
 public List <Category> GetCategories()
 {
     try
     {
         return(productServiceImpl.GetCategories());
     }
     catch (Exception ex)
     {
         throw new FaultException <FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
     }
 }
Beispiel #6
0
 public ShoppingCartDto GetShoppingCart(Guid customerId)
 {
     try
     {
         return(_orderServiceImp.GetShoppingCart(customerId));
     }
     catch (Exception ex)
     {
         throw new FaultException <FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
     }
 }
Beispiel #7
0
 public void UpdateShoppingCartItem(Guid shoppingCartItemId, int quantity)
 {
     try
     {
         _orderServiceImp.UpdateShoppingCartItem(shoppingCartItemId, quantity);
     }
     catch (Exception ex)
     {
         throw new FaultException <FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
     }
 }
Beispiel #8
0
 public void UncategorizeProduct(Guid productID)
 {
     try
     {
         productServiceImpl.UncategorizeProduct(productID);
     }
     catch (Exception ex)
     {
         throw new FaultException <FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
     }
 }
Beispiel #9
0
 public CategoryDataObject GetCategoryByID(Guid id, QuerySpec spec)
 {
     try
     {
         return(productServiceImpl.GetCategoryByID(id, spec));
     }
     catch (Exception ex)
     {
         throw new FaultException <FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
     }
 }
 public ProductDataObjectList UpdateProducts(ProductDataObjectList productDataObjects)
 {
     try
     {
         return(_productServiceImpl.UpdateProducts(productDataObjects));
     }
     catch (Exception ex)
     {
         throw new FaultException <FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
     }
 }
 public void DeleteProducts(IDList productIDs)
 {
     try
     {
         _productServiceImpl.DeleteProducts(productIDs);
     }
     catch (Exception ex)
     {
         throw new FaultException <FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
     }
 }
Beispiel #12
0
 public void Confirm(Guid orderID)
 {
     try
     {
         _orderServiceImpl.Confirm(orderID);
     }
     catch (Exception ex)
     {
         throw new FaultException <FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
     }
 }
Beispiel #13
0
 public SalesOrderDataObject Checkout(Guid customerID)
 {
     try
     {
         return(_orderServiceImpl.Checkout(customerID));
     }
     catch (Exception ex)
     {
         throw new FaultException <FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
     }
 }
Beispiel #14
0
 public SalesOrderDataObject GetSalesOrder(Guid orderID)
 {
     try
     {
         return(_orderServiceImpl.GetSalesOrder(orderID));
     }
     catch (Exception ex)
     {
         throw new FaultException <FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
     }
 }
Beispiel #15
0
 public void Dispatch(Guid orderId)
 {
     try
     {
         _orderServiceImp.Dispatch(orderId);
     }
     catch (Exception ex)
     {
         throw new FaultException <FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
     }
 }
Beispiel #16
0
 public ProductDataObjectList GetProducts(QuerySpec spec)
 {
     try
     {
         return(productServiceImpl.GetProducts(spec));
     }
     catch (Exception ex)
     {
         throw new FaultException <FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
     }
 }
Beispiel #17
0
 public void AddProductToCart(Guid customerId, Guid productId, int quantity)
 {
     try
     {
         _orderServiceImp.AddProductToCart(customerId, productId, quantity);
     }
     catch (Exception ex)
     {
         throw new FaultException <FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
     }
 }
Beispiel #18
0
 public ProductDataObjectListWithPagination GetProductsForCategoryWithPagination(Guid categoryID, Pagination pagination)
 {
     try
     {
         return(productServiceImpl.GetProductsForCategoryWithPagination(categoryID, pagination));
     }
     catch (Exception ex)
     {
         throw new FaultException <FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
     }
 }
Beispiel #19
0
 public int GetShoppingCartItemCount(Guid userId)
 {
     try
     {
         return(_orderServiceImp.GetShoppingCartItemCount(userId));
     }
     catch (Exception ex)
     {
         throw new FaultException <FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
     }
 }
Beispiel #20
0
 public CategoryDataObjectList UpdateCategories(CategoryDataObjectList categoryDataObjects)
 {
     try
     {
         return(productServiceImpl.UpdateCategories(categoryDataObjects));
     }
     catch (Exception ex)
     {
         throw new FaultException <FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
     }
 }
Beispiel #21
0
 public void DeleteShoppingCartItem(Guid shoppingCartItemId)
 {
     try
     {
         _orderServiceImp.DeleteShoppingCartItem(shoppingCartItemId);
     }
     catch (Exception ex)
     {
         throw new FaultException <FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
     }
 }
Beispiel #22
0
 public void DeleteCategories(IDList categoryIDs)
 {
     try
     {
         productServiceImpl.DeleteCategories(categoryIDs);
     }
     catch (Exception ex)
     {
         throw new FaultException <FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
     }
 }
Beispiel #23
0
 public OrderDto GetOrder(Guid orderId)
 {
     try
     {
         return(_orderServiceImp.GetOrder(orderId));
     }
     catch (Exception ex)
     {
         throw new FaultException <FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
     }
 }
Beispiel #24
0
 public CategorizationDataObject CategorizeProduct(Guid productID, Guid categoryID)
 {
     try
     {
         return(productServiceImpl.CategorizeProduct(productID, categoryID));
     }
     catch (Exception ex)
     {
         throw new FaultException <FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
     }
 }
 public Product GetProductByID(Guid id)
 {
     try
     {
         return(productServiceImpl.GetProductByID(id));
     }
     catch (Exception ex)
     {
         throw new FaultException <FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
     }
 }
Beispiel #26
0
 public IList <OrderDto> GetOrdersForUser(Guid userId)
 {
     try
     {
         return(_orderServiceImp.GetOrdersForUser(userId));
     }
     catch (Exception ex)
     {
         throw new FaultException <FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
     }
 }
 public List <Product> GetProductsForCategory(Guid categoryID)
 {
     try
     {
         return(productServiceImpl.GetProductsForCategory(categoryID));
     }
     catch (Exception ex)
     {
         throw new FaultException <FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
     }
 }
Beispiel #28
0
 public IList <OrderDto> GetAllOrders()
 {
     try
     {
         return(_orderServiceImp.GetAllOrders());
     }
     catch (Exception ex)
     {
         throw new FaultException <FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
     }
 }
 public PagedResult <Product> GetProductsWithPagination(int pageNumber, int pageSize)
 {
     try
     {
         return(productServiceImpl.GetProductsWithPagination(pageNumber, pageSize));
     }
     catch (Exception ex)
     {
         throw new FaultException <FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
     }
 }
Beispiel #30
0
 public ModuleDTO EditModule(ModuleDTO moduledto)
 {
     try
     {
         return(webServiceImpl.EditModule(moduledto));
     }
     catch (Exception ex)
     {
         throw new FaultException <FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
     }
 }