public IActionResult UserHome() { var user = authProvider.GetCurrentUser(); ReservationUserViewModel vm = new ReservationUserViewModel(); vm.User = userDAL.GetUser(user.Username); vm.Pets = petDAO.GetAllPets(user.Id); vm.Accepted = reservationDAO.GetAllAcceptedReservations(user.Id); vm.Pending = reservationDAO.GetAllPendingReservations(user.Id); vm.Declined = reservationDAO.GetAllDeclinedReservations(user.Id); return(View(vm)); }