Ejemplo n.º 1
0
        // GET: /<controller>/
        public async Task <IActionResult> Index()
        {
            ICollection <RecordDTO> recordsToDisplay = await _RecordService.GetAllRecords();

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

            return(View(model));
        }
Ejemplo n.º 2
0
        // 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));
        }