// GET: /<controller>/ public async Task <IActionResult> Index() { ICollection <RecordDTO> recordsToDisplay = await _RecordService.GetAllRecords(); var model = new ClientLibViewModel() { RecordCollection = recordsToDisplay }; return(View(model)); }
// GET: /<controller>/ public async Task <IActionResult> Index() { ICollection <ItemDTO> itemsDTOToDIsplay = await _itemService.GetAll(); var model = new ClientLibViewModel() { ItemCollection = itemsDTOToDIsplay }; return(View(model)); }
// GET: /<controller>/ public async Task <IActionResult> Index() { ICollection <UserDTO> usersToDisplay = await _userService.GetAllUsers(); var model = new ClientLibViewModel() { UserCollection = usersToDisplay }; return(View(model)); }