public ActionResult Index()
        {
            ViewBag.Message = "Trip List Page";
            var trips = _repo.GetAllTrips().ToList();

            foreach (var trip in trips)
            {
                CheckIfTripIsViable(trip.TripId);
                CheckIfTripIsComplete(trip.TripId);
            }
            trips = _repo.GetAllTrips().ToList();
            //ViewBag.percentages = CalculatePercentages(trips);
            //List<List<TripStatus>> per = CalculatePercentages(trips);
            //per.First().Where(l=>l.tripId=)
            ViewBag.tripId = 1;

            return(View(trips));
        }
 public ActionResult Create()
 {
     ViewBag.ErrorMessage = "";
     ViewBag.Trips        = _repo.GetAllTrips().Select(t => new { id = t.TripId, name = t.Name });
     return(View());
 }