Esempio n. 1
0
        public HttpResponseMessage GetDriverPreferences(string driverId)
        {
            var preference = _driverserv.GetDriverReference(driverId);
            var jsonObj    = new JavaScriptSerializer().Serialize(preference);

            return(new HttpResponseMessage()
            {
                StatusCode = HttpStatusCode.OK, Content = new StringContent(jsonObj)
            });
        }