I'm trying to add a controller for the ApplicationUser.cs so that when a admin is logged in, they have the ability to view, edit, delete any records from the dbo.AspNetUsers table however I think I'm doing it wrong. Any ideas?
Here's the code for the ApplicationUser.cs:
namespace ProjectTest.Models { // Add profile data for application users by adding properties to the ApplicationUser class public class ApplicationUser : IdentityUser { public string Summary { get; set; } public string FirstName { get; set; } public string LastName { get; set; } override public string UserName { get; set; } public string RoleType { get; set; } public string Address { get; set; } public string City { get; set; } override public string PhoneNumber { get; set; } override public string Email { get; set; } } }
When I try to add a controller for the ApplicationUser model class, the controller gets created (including the view files) but fails to launch. The controller is the default code after creating a new controller.