示例#1
0
 public GenericService(IRepositoryManager repositoryManager)
 {
     this.genRepository = repositoryManager.GenericRepository <TEntity>();
 }
        //Start page
        public ActionResult List()
        {
            var genRepo = dataManager.GenericRepository <Book>();

            return(View(genRepo.GetAll()));
        }