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;
});;