예제 #1
0
        public void sua_quyen(LOAIQUYEN mb)
        {
            LOAIQUYEN x = layOnequyen(mb.idQuyen);

            x.TenQuyen = mb.TenQuyen;
            db.SaveChanges();
        }
예제 #2
0
        public void xoa_quyen(string id)
        {
            LOAIQUYEN x = layOnequyen(id);

            db.LOAIQUYENs.Remove(x);
            db.SaveChanges();
        }
예제 #3
0
        public void them_quyen(LOAIQUYEN q)
        {
            string idq = Content.RandomString(8);

            q.idQuyen = idq;
            db.LOAIQUYENs.Add(q);
            db.SaveChanges();
        }