public GetStoreProductResponse GetStoreProduct(Guid storeID, Guid productID) { // if need must be configured correctly GetStoreProductResponse response = new GetStoreProductResponse(); try { StoreProduct storeProduct = new StoreProduct(); StoreProductView storeProductView = storeProduct.ConvertToStoreProductView(); storeProduct = _storeProductRepository.FindBy(storeID, productID); if (storeProduct != null) { storeProductView = storeProduct.ConvertToStoreProductView(); } response.StoreProductView = storeProductView; } catch (Exception ex) { throw; } return(response); }
private StoreProductView GetStoreProductView(string storeID, string productID) { GetStoreProductResponse response = this._storeProductService.GetStoreProduct(Guid.Parse(storeID), Guid.Parse(productID)); return(response.StoreProductView); }