public static void AddUserToRole(string userId, string role, JobPortalSharpDbContext context) { var store = new UserStore <ApplicationUser>(context); var manager = new UserManager <ApplicationUser>(store); manager.AddToRole(userId, role); }
public BaseController() { Database = new JobPortalSharpDbContext(); }