public List <T> GetList() { var listTemp = dbSet.ToList(); if (listTemp == null || listTemp.Count == 0) { return(null); } else { return(listTemp); } }
public IList <T> GetList() { return(dbSet.ToList()); }