/// <summary> /// read all models /// </summary> /// <typeparam name="T">model type</typeparam> /// <returns>all models</returns> public virtual List <T> Index <T>() where T : class { IMainDal dal = new MainDal(); return(dal.Index <T>()); }