public async Task <IActionResult> SeatDetails(Guid SeatId, Guid RoomId, Guid MovieRoomId, DateTime Playtime, Guid MovieId, string user)
        {
            try
            {
                Ticket t        = new Ticket();
                Guid   TicketId = new Guid();

                var User = await _cinemaRepository.GetUserByName(user);

                t.Id                = TicketId;
                t.SeatId            = SeatId;
                t.MovieRoomId       = MovieRoomId;
                t.AspNetUserId      = User.Id;
                t.MovieRoomMovieId  = MovieId;
                t.MovieRoomRoomId   = RoomId;
                t.MovieRoomPlayTime = Playtime;

                await _cinemaRepository.PostTicketAsync(t);

                Seat seat = await _cinemaRepository.GetSeatById(SeatId);

                return(View(seat));
            }
            catch (Exception)
            {
                return(Redirect("/Cinema/ErrorPage"));
            }
        }