public static List <T> PagedGetAllEntities(int start, int pageSize, out int totalCount) { try { List <T> results = new List <T>(); results = EntityDb <T> .PagedGetAll(start, pageSize, out totalCount); EntityDb <T> .CloseSession(); return(results); } catch (Exception) { throw; } }