public CartDto AddTicket(SelectedSeatsDto seats) { // check if this is the first time the car is initiated if (UserCart.UserId == null && UserCart.Orders == null) { UserCart.UserId = User.Identity.GetUserId(); UserCart.Orders = new Collection <OrderDto>(); } UserCart = _busService.AddToCart(UserCart, seats); return(UserCart); }