public void CreateBooking(PossibleBooking booking)
 {
     _bookings.Add(booking);
 }
 public void UpdateBooking(int index, PossibleBooking change)
 {
     _bookings[index] = change;
 }
        public ActionResult InputActions()
        {
            var uri = String.Format(POSSIBLE_BOOKING_URI);
            var date = Request.Form["Date"];
            var startTime = Request.Form["StartTime"];
            var endTime = Request.Form["EndTime"];
            var subject = Request.Form["SubjectBox"];

            var possibleBooking = new PossibleBooking
            {
                StartTime = DateTime.Parse(string.Format(ISO8601_FORMAT, date, startTime)),
                EndTime = DateTime.Parse(string.Format(ISO8601_FORMAT, date, endTime)),
                Subject = new Subject { Name = subject}
            };

            var json = possibleBooking.SerializeToJsonObject();

            ServerCommunicator.Post(uri, json);

            return new RedirectResult(Request.RawUrl);
        }