public List <T> RetrieveUnavailableGates <T>(string id) { GateMapper gateMapper = new GateMapper(); var listGates = new List <T>(); var lstResult = dao.ExecuteQueryProcedure(gateMapper.GetRetrieveStatementUnavailableGatesByAirportId(id)); var dic = new Dictionary <string, object>(); if (lstResult.Count > 0) { var objs = gateMapper.BuildObjects(lstResult); foreach (var c in objs) { listGates.Add((T)Convert.ChangeType(c, typeof(T))); } } return(listGates); }
public override List <T> RetrieveAll <T>() { var listGates = new List <T>(); var lstResult = dao.ExecuteQueryProcedure(mapper.GetRetrieveAllStatement()); var dic = new Dictionary <string, object>(); if (lstResult.Count > 0) { var objs = mapper.BuildObjects(lstResult); foreach (var c in objs) { listGates.Add((T)Convert.ChangeType(c, typeof(T))); } } return(listGates); }