Esempio n. 1
0
        public int Del(PopedomRoleModel pm)
        {
            PopedomRole pr = new PopedomRole()
            {
                id = pm.id
            };

            return(Delete(pr));
        }
Esempio n. 2
0
        public int Add(PopedomRoleModel pm)
        {
            PopedomRole pr = new PopedomRole()
            {
                id  = pm.id,
                uid = pm.uid,
                Pid = pm.Pid
            };

            return(Add(pr));
        }
Esempio n. 3
0
        public int Update(PopedomRoleModel pm)
        {
            PopedomRole est = new PopedomRole()
            {
                id  = pm.id,
                uid = pm.uid,
                Pid = pm.Pid
            };

            return(Update(est));
        }
Esempio n. 4
0
        public PopedomRoleModel SelectBy(int id)
        {
            PopedomRole      c  = SelectBy(e => e.id.Equals(id)).FirstOrDefault();
            PopedomRoleModel cm = new PopedomRoleModel()
            {
                id  = c.id,
                uid = c.uid,
                Pid = c.Pid
            };

            return(cm);
        }
Esempio n. 5
0
        public List <PopedomRoleModel> select()
        {
            List <PopedomRole>      list  = SelectAll();
            List <PopedomRoleModel> list2 = new List <PopedomRoleModel>();

            foreach (PopedomRole item in list)
            {
                PopedomRoleModel cm = new PopedomRoleModel()
                {
                    id  = item.id,
                    uid = item.uid,
                    Pid = item.Pid
                };
                list2.Add(cm);
            }
            return(list2);
        }
Esempio n. 6
0
 public int Update(PopedomRoleModel pm)
 {
     return(ipd.Update(pm));
 }
Esempio n. 7
0
 public int Del(PopedomRoleModel pm)
 {
     return(ipd.Del(pm));
 }
Esempio n. 8
0
 public int Add(PopedomRoleModel pm)
 {
     return(ipd.Add(pm));
 }