Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I am trying to Get my registered users to a table. I do not know how to map the controller to the sql AspNetUser table. I would have thought it would be similar to my other classes? It is coming back as not found.

 // GET api/<controller>
    public List<ApplicationUser> Get()
    {
        using (var context = new ApplicationDbContext())
        {
            List<ApplicationUser> users = new List<ApplicationUser>();
            users = context.Users
                .ToList();
            return users;
        }

    }
app.factory('Authentication', function ($resource) {
var resource = $resource('/api/AspNetUser', {}, {
    query: {
        method: 'GET',
        cache: true
    }
});
return resource.get().$promise;

});;

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.