Esempio n. 1
0
 public async Task <MessageModel <List <TestViewModels> > > GetAll()
 {
     return(new MessageModel <List <TestViewModels> >()
     {
         msg = "查询成功",
         success = true,
         response = _mapper.Map <List <TestViewModels> >(await _testServices.GetTests())
     });
 }
Esempio n. 2
0
        public List <Test> GetTest()
        {
            var result = _bookscarkservice.GetTests();

            return(result);
        }
        // GET: TestResults
        public async Task <ActionResult> Index()
        {
            var viewModel = testServices.GetTests();

            return(View(viewModel));
        }