Example #1
0
        // POST: api/customerList
        public List <Customer> Post([FromBody] string value)
        {
            CutomerList     customerHelper = new CutomerList();
            List <Customer> customerList   = customerHelper.GetCustomerList();

            // return customerList
            return(customerList);
        }
Example #2
0
        // GET: api/customerList
        //public string Get()
        public List <Customer> Get()
        {
            CutomerList     customerHelper = new CutomerList();
            List <Customer> customerList   = customerHelper.GetCustomerList();

            return(customerList);
            //return "hello";
        }