コード例 #1
0
        public Product GetSingleProduct(string productType)
        {
            IProductRepository productRepo = RepoFactory.CreateProductRepo();

            Product product = productRepo.GetSingleProduct(productType);

            return(product);
        }
コード例 #2
0
        public State GetSingleState(string stateAbbreviation)
        {
            IStateRepository stateRepo = RepoFactory.CreateStateRepo();

            State state = stateRepo.GetSingleState(stateAbbreviation);

            return(state);
        }