public List<DTO.DTOtblGROUP> TimkiemtblGROUP(string Keyword) { List<DTO.DTOtblGROUP> list = new List<DTO.DTOtblGROUP>(); DataTable dt = tblgroup.TimkiemtblGROUP(Keyword); foreach(DataRow row in dt.Rows) { DTO.DTOtblGROUP e =new DTO.DTOtblGROUP(); e.GROUPID=Int32.Parse(row["GROUPID"].ToString()); e.GROUPNAME=row["GROUPNAME"].ToString(); list.Add(e); } return list; }
public List<DTO.DTOtblGROUP> LayTheoMatblGROUP(int GROUPID) { List<DTO.DTOtblGROUP> list = new List<DTO.DTOtblGROUP>(); DataTable dt = tblgroup.LayTheoMatblGROUP(GROUPID); foreach(DataRow row in dt.Rows) { DTO.DTOtblGROUP e =new DTO.DTOtblGROUP(); e.GROUPID=Int32.Parse(row["GROUPID"].ToString()); e.GROUPNAME=row["GROUPNAME"].ToString(); list.Add(e); } return list; }