public async Task <MessageModel <List <TestViewModels> > > GetAll() { return(new MessageModel <List <TestViewModels> >() { msg = "查询成功", success = true, response = _mapper.Map <List <TestViewModels> >(await _testServices.GetTests()) }); }
public List <Test> GetTest() { var result = _bookscarkservice.GetTests(); return(result); }
// GET: TestResults public async Task <ActionResult> Index() { var viewModel = testServices.GetTests(); return(View(viewModel)); }