/// <summary> /// Fetch list data using default object factory /// </summary> /// <typeparam name="T">Model object type</typeparam> /// <typeparam name="TE">Any type that has empty constructor</typeparam> /// <param name="list">Entity list to fetch data</param> /// <returns>Return a model list</returns> public static IList <T> FetchList <T, TE>(IEnumerable <TE> list) where T : ModelBase, new() where TE : class, new() { return(list.Select(item => ObjectUtil.Fetch(new T(), item)).ToList()); }