public int Del(PopedomRoleModel pm) { PopedomRole pr = new PopedomRole() { id = pm.id }; return(Delete(pr)); }
public int Add(PopedomRoleModel pm) { PopedomRole pr = new PopedomRole() { id = pm.id, uid = pm.uid, Pid = pm.Pid }; return(Add(pr)); }
public int Update(PopedomRoleModel pm) { PopedomRole est = new PopedomRole() { id = pm.id, uid = pm.uid, Pid = pm.Pid }; return(Update(est)); }
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); }
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); }
public int Update(PopedomRoleModel pm) { return(ipd.Update(pm)); }
public int Del(PopedomRoleModel pm) { return(ipd.Del(pm)); }
public int Add(PopedomRoleModel pm) { return(ipd.Add(pm)); }