Beispiel #1
0
        public async Task <List <string> > GetUserNewRoles(int branchId, int committeeId)
        {
            int           userId    = User.UserId();
            List <string> userRoles = new List <string>();

            if (branchId != 0)
            {
                userRoles = await _IbranchAppService.GetUserRolesByBranch(userId, branchId);
            }
            else if (committeeId != 0)
            {
                userRoles = await _IbranchAppService.GetUserRoleByCommittee(userId, committeeId);
            }
            return(userRoles);
        }