Ejemplo n.º 1
0
        public HttpResponseMessage <ConfirmationStatus> Post(ParkingConfirmation parkingConfirmation)
        {
            var result = new ConfirmationStatus()
            {
                Succeed = true
            };

            return(Request.CreateResponse(result));
        }
Ejemplo n.º 2
0
        public HttpResponseMessage <ParkingConfirmation> Post(ParkingDetails id)
        {
            //if (parkingDetails.LocationFile != null && parkingDetails.LocationFile.ContentLength > 0)

            var result = new ParkingConfirmation
            {
                Id       = 122345,
                Location = new Location
                {
                    Id   = 1,
                    Name = "Vancouver"
                },
                QuotedPrice    = 0.30m,
                UserProperties = new UserProperties
                {
                    Vehicle = new Dictionary <string, string>()
                    {
                        { "car 1 ", "123 sdf" }, { "car 2", "sdf234" }
                    }
                }
            };

            return(Request.CreateResponse(result));
        }