public AdminInfo getDataById(int id) { AdminInfo info = new AdminInfo(); IDataReader reader = db.GetDataById(id).CreateDataReader(); while (reader.Read()) { info = AdminInfo.Populate(reader); } return(info); }
public AdminInfo getDataById(int id) { AdminInfo info = new AdminInfo(); IDataReader reader = db.GetDataById(id).CreateDataReader(); while (reader.Read()) { info = AdminInfo.Populate(reader); } return(info); }