示例#1
0
        // GET: api/Customers
        //public HttpResponseMessage Get()
        //{
        //    CustomerDataView UDV = UM.GetCustomerDataView();
        //    var json = new JavaScriptSerializer().Serialize(UDV.CustomerProfile);

        //    var response = Request.CreateResponse(HttpStatusCode.OK);
        //    response.Content = new StringContent(json.ToString(), Encoding.UTF8, "application/json");
        //    Console.WriteLine(json);
        //    return response;


        //}
        public IEnumerable <CustomerModel> Get()
        {
            CustomerDataView UDV = UM.GetCustomerDataView();

            return(UDV.CustomerProfile);
        }