Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public IEnumerable<Customers> getCustomersById(string id){
- var isAuthenticated = tokenAuthorization.validateToken(access_token);
- if (isAuthenticated)
- {
- List<Customers> customers = new List<Customers>();
- Customers customer = null;
- customer = new Customers();
- customer.kunnr = id;
- customer.name = "John Doe";
- customers.Add(customer);
- return customers;
- }
- else
- {
- return 'Not a valid Access Token';
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement