Пример #1
0
        public async Task <IActionResult> Create()
        {
            var auxViewModel = new NewReservationViewModel();

            _manageReservations.GetOperationsFromDatabase(auxViewModel);
            var user = await _userManager.GetUserAsync(HttpContext.User);

            ViewBag.CarsList = _manageCars.GetUserCars(user);
            return(View(auxViewModel));
        }
Пример #2
0
        public async Task <IActionResult> Index()
        {
            var user = await _userManager.GetUserAsync(HttpContext.User);

            return(View(_manageCars.GetUserCars(user)));
        }