Exemplo n.º 1
0
        public DCCardboardProfile UpdateCardboardProfile(DCCardboardProfile cbProfile)
        {
            PLMPackEntities  db = new PLMPackEntities();
            CardboardProfile cp = CardboardProfile.GetByID(db, cbProfile.ID);

            cp.Name        = cbProfile.Name;
            cp.Description = cbProfile.Description;
            cp.Code        = cbProfile.Code;
            cp.Thickness   = cbProfile.Thickness;
            db.SaveChanges();
            return(cbProfile);
        }
Exemplo n.º 2
0
        public DCCardboadFormat UpdateCardboardFormat(DCCardboadFormat cbFormat)
        {
            PLMPackEntities db = new PLMPackEntities();
            CardboardFormat cf = CardboardFormat.GetById(db, cbFormat.ID);

            cf.Name        = cbFormat.Name;
            cf.Description = cbFormat.Description;
            cf.Length      = cbFormat.Length;
            cf.Width       = cbFormat.Width;
            db.SaveChanges();
            return(cbFormat);
        }