Ejemplo n.º 1
0
        public BaseResponse AddRole(AddRoleRequest request)
        {
            var roleName  = string.IsNullOrWhiteSpace(request.RoleName) ? string.Empty : request.RoleName;
            var baseRoles = (request.BaseRoles ?? Enumerable.Empty <string>()).ToArray();

            IdentityRepository.AddRoleInRoles(roleName, baseRoles);
            return(BaseResponse.Ok());
        }