Exemplo n.º 1
0
        public void Create(DalSellingPointCategory e)
        {
            var SellingPointCategory = new SellingPointCategory()
            {
                SellingPointCategoryID   = e.Id,
                SellingPointCategoryName = e.SellingPointCategoryName
            };

            Context.Set <SellingPointCategory>().Add(SellingPointCategory);
        }
Exemplo n.º 2
0
        public void Update(DalSellingPointCategory e)
        {
            var SellingPointCategory = new SellingPointCategory()
            {
                SellingPointCategoryID   = e.Id,
                SellingPointCategoryName = e.SellingPointCategoryName
            };

            SellingPointCategory = Context.Set <SellingPointCategory>().Single(i => i.SellingPointCategoryID == e.Id);

            SellingPointCategory.SellingPointCategoryName = e.SellingPointCategoryName;
        }