Exemple #1
0
        /// <summary>Removes user from Assistant Role</summary>
        public async Task <bool> RemoveFromAssRole(SystemUser user)
        {
            var result = await _userManager.RemoveFromRoleAsync(user, AssistantRoleName);

            return(Verify(result));
        }
Exemple #2
0
        /// <summary>Removes user from Company Commander Role</summary>
        public async Task <bool> RemoveFromCCRole(SystemUser user)
        {
            var result = await _userManager.RemoveFromRoleAsync(user, CompanyCommanderRoleName);

            return(Verify(result));
        }
Exemple #3
0
        /// <summary>Add user to Platoon Commander Role</summary>
        public async Task <bool> AddToPCRole(SystemUser user)
        {
            var result = await _userManager.AddToRoleAsync(user, PlatoonCommanderRoleName);

            return(Verify(result));
        }