/// <summary> /// Get doors inside access level /// </summary> /// <param name="accessLvId">ID of access level include door</param> /// <returns>List of door</returns> public static List <Door> GetDoors(string accessLvId) { List <Door> doors = new List <Door>(); DataTable dt = null; try { ServiceReference1.WSACUSoapClient client = new ServiceReference1.WSACUSoapClient(); DataSet ds = client.AccessLevelDQry("D", accessLvId); dt = ds.Tables[0]; foreach (DataRow dr in dt.Rows) { string Id = dr["doorId"].ToString(); Door door = Door.LoadDoorById(Id); doors.Add(door); } return(doors); } catch (Exception ex) { return(null); } }