public bool CreateRideOffer(string Email, double StartLat, double StartLng, double DestinationLat, double DestinationLng, List <List <double> > Waypoints, List <List <double> > RoutePoints, List <List <double> > RangePolygon, DateTime Departure, object Arrival, int Seats, double Price, int Radius, double Distance, bool Active)
        {
            PickrWebService api    = new PickrWebService();
            JSONParser      parser = new JSONParser();
            Offer           o      = new Offer();

            JObject json = api.CreateOffer(Email, StartLat, StartLng, DestinationLat, DestinationLng, Waypoints, RoutePoints, RangePolygon, Departure, Arrival, Seats, Price, Radius, Distance, Active);


            bool added = false;

            added = parser.ParseCreateTable(json);

            if (added)
            {
                //HttpContext.Current.Session["RangeIndices"] = null;
                //HttpContext.Current.Session["RoutePoints"] = null;
                //HttpContext.Current.Session["Waypoints"] = null;
                //HttpContext.Current.Session["StartCoords"] = null;
                //HttpContext.Current.Session["DestCoords"] = null;
                //HttpContext.Current.Session["Radius"] = null;
                //HttpContext.Current.Session["Duration"] = null;
                //Response.Redirect("/OffersList");
            }

            //else if (!added)
            //{
            //    ErrorMessage.Text = "Some data was not successfully published.";
            //}

            return(added);
        }