public static List <Ticket> List(FiltroTicket f, out int RecordCount) { List <Ticket> resultList = new List <Ticket>(); try { TicketDS dataservice = new TicketDS(); DataSet ds = dataservice.List(f, out RecordCount); if (ds.Tables.Count > 0) { foreach (DataRow r in ds.Tables[0].Rows) { Ticket t = new Ticket(); ORM(t, r); resultList.Add(t); } } } catch (Exception ex) { throw ex; } return(resultList); }