The error indicates the ADMIN role does not exist in the Role table. Add the role.
Role does not exist
HI im trying to make the edit role functionallity keeping it short when i run the controller i get the error
System.InvalidOperationException: Role ADMIN does not exist.
at Microsoft.AspNetCore.Identity.EntityFrameworkCore.UserStore9.AddToRoleAsync(TUser user, String normalizedRoleName, CancellationToken cancellationToken) at Microsoft.AspNetCore.Identity.UserManager
1.AddToRolesAsync(TUser user, IEnumerable`1 roles)
at IslamicSchool.Controllers.DeanController.EditRoles(String username, String roles) in D:\IslamicSchool\API\IslamicSchool\IslamicSchool\Controllers\DeanController.cs:line 47
ill attach the controller method as a picture
also the postman error