示例#1
0
        public List <SearchShoes> SearchS(int id)
        {
            var capData           = new ShoesApp.Data.dataBl();
            List <SearchShoes> lp = new List <SearchShoes>();

            var listProduct = capData.Getid(id);

            foreach (var item in listProduct)
            {
                lp.Add(new SearchShoes {
                    IdType           = item.IdType,
                    Id               = item.Id,
                    IdColor          = item.IdColor,
                    IdBrand          = item.IdBrand,
                    IdProvider       = item.IdProvider,
                    IdCatalog        = item.IdCatalog,
                    Title            = item.Title,
                    Nombre           = item.Nombre,
                    Description      = item.Description,
                    Observations     = item.Observations,
                    PriceClient      = item.PriceClient,
                    PriceDistributor = item.PriceDistributor,
                    PriceMember      = item.PriceMember,
                    IsEnabled        = item.IsEnabled,
                    Keywords         = item.Keywords,
                    DateUpdate       = item.DateUpdate
                });
            }
            return(lp);
        }
示例#2
0
        public List <SearchShoes> searchByName(string name)
        {
            var capData2          = new ShoesApp.Data.dataBl();
            List <SearchShoes> ln = new List <SearchShoes>();

            var listname = capData2.GetName(name);

            foreach (var item in listname)
            {
                ln.Add(new SearchShoes
                {
                    IdType           = item.IdType,
                    Id               = item.Id,
                    IdColor          = item.IdColor,
                    IdBrand          = item.IdBrand,
                    IdProvider       = item.IdProvider,
                    IdCatalog        = item.IdCatalog,
                    Title            = item.Title,
                    Nombre           = item.Nombre,
                    Description      = item.Description,
                    Observations     = item.Observations,
                    PriceClient      = item.PriceClient,
                    PriceDistributor = item.PriceDistributor,
                    PriceMember      = item.PriceMember,
                    IsEnabled        = item.IsEnabled,
                    Keywords         = item.Keywords,
                    DateUpdate       = item.DateUpdate
                });
            }
            return(ln);
        }
示例#3
0
        public void AddShoes(SearchShoes insert)
        {
            var insrt = new ShoesApp.Data.dataBl();

            insrt.InsertShoes(insert.IdType, insert.IdColor, insert.IdBrand, insert.IdProvider, insert.IdCatalog, insert.Title, insert.Nombre, insert.Description, insert.Observations, insert.PriceDistributor, insert.PriceClient, insert.PriceMember, insert.IsEnabled, insert.Keywords, insert.DateUpdate);
        }