Hi everyone, I have a question, I don't know how to at least Add a User to a Role with this framework its very nice and Ive been working with a lot, but sometimes its too rigid, for example Ive been trying to do this
Thanks
IdentityResult result = await UserManager.CreateAsync(user, model.Password);
if (result.Succeeded)
{
await UserManager.AddToRoleAsync(user.Id, @"JobProvider");
}
There is an exeption because it says that "Unable to cast IdentityUserRole to IObjectState" like I said I don't know how to figure it out please if you have a solution for my issue I'll appreciate you all,Thanks