コード例 #1
0
        // GET: /<controller>/
        public async Task <IActionResult> Index()
        {
            ICollection <RecordDTO> recordsToDisplay = await _RecordService.GetAllRecords();

            var model = new ClientLibViewModel()
            {
                RecordCollection = recordsToDisplay
            };

            return(View(model));
        }
コード例 #2
0
        // GET: /<controller>/
        public async Task <IActionResult> Index()
        {
            ICollection <ItemDTO> itemsDTOToDIsplay = await _itemService.GetAll();

            var model = new ClientLibViewModel()
            {
                ItemCollection = itemsDTOToDIsplay
            };

            return(View(model));
        }
コード例 #3
0
        // GET: /<controller>/
        public async Task <IActionResult> Index()
        {
            ICollection <UserDTO> usersToDisplay = await _userService.GetAllUsers();

            var model = new ClientLibViewModel()
            {
                UserCollection = usersToDisplay
            };

            return(View(model));
        }