示例#1
0
 public RoleDeleteReply RoleDelete(RoleDeleteRequest request)
 {
     try
     {
         RoleDeleteReply response = new RoleDeleteReply();
         response.ResultStatus = _roles.DeleteRole(request.RoleName, request.ThrowOnPopulated);
         response.Status       = ActionStatus.OK;
         return(response);
     }
     catch (Exception ex)
     {
         throw ex.NewFault();
     }
 }
示例#2
0
        public bool DeleteRole(string applicationName, string roleName, bool throwOnPopulatedRole)
        {
            _Provider.ApplicationName = _ApplicationName;

            return(_Provider.DeleteRole(roleName, throwOnPopulatedRole));
        }