public async Task <IActionResult> Index()
 {
     return(View(await _repository.GetAll()));
 }
示例#2
0
 private async Task RefreshCollectionsAsync()
 {
     ViewData["ReadUserId"] = new SelectList(await _systemUserRepository.GetAll(), "Id", "FullName");
     ViewData["MonthId"]    = new SelectList(await _monthRepository.GetAll(), "Id", "ShortDesc");
 }