-
-
Save aarshtalati/270d630ba2e8421d020eb1149abaf346 to your computer and use it in GitHub Desktop.
Web API Controller listening to AngularJS HTTP GET calls
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CustomerController : _ApiBaseController | |
{ | |
// GET: api/Customer | |
public IEnumerable<CustomerContract> Get() | |
{ | |
var customers = repository.EntitySet<NorthwindEntities.DB.Customer>().Take(10).ToArray(); | |
return new List<CustomerContract>().AsEnumerable(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment