Exemple #1
0
        public IBOProductsByCategory BOProductsByCategory(IProductsByCategoryRepository repo)
        {
            BOProductsByCategory boProductsByCategory = (BOProductsByCategory)BOProductsByCategory();

            boProductsByCategory.Repository = repo;
            return(boProductsByCategory);
        }
Exemple #2
0
        public IBOProductsByCategory BOProductsByCategory()
        {
            var boProductsByCategory = new BOProductsByCategory()
            {
                CategoryName    = this.CategoryName,
                ProductName     = this.ProductName,
                QuantityPerUnit = this.QuantityPerUnit,
                UnitsInStock    = this.UnitsInStock,
                Discontinued    = this.Discontinued
            };

            return(boProductsByCategory);
        }