Exemple #1
0
        protected async Task DeleteUserRole(string userId, string roleId)
        {
            var item = User.AspNetUserRoles.Where(v => v.UserId == userId && v.RoleId == roleId).FirstOrDefault();

            User.AspNetUserRoles.Remove(item);
            await UserDataService.DeleteUserRole(userId, roleId);
        }