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