private Product GetProductByTitle(string productTitle) { Product product; using (var repository = new ProductContext()) { product = repository.FindByTitle(productTitle); } return(product); }
private Product GetProductByTitle(string productTitle) { Product product; using (var repository = new ProductContext()) { product = repository.FindByTitle(productTitle); } return(product); }