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)); }
public async Task <IActionResult> Index() { var user = await _userManager.GetUserAsync(HttpContext.User); return(View(_manageCars.GetUserCars(user))); }