コード例 #1
0
        public ServiceResult InsertBlockedUser(string targetUserUUID)
        {
            if (CurrentUser == null)
            {
                return(ServiceResponse.Error("You must be logged in to access this function."));
            }

            RoleManager roleManager = new RoleManager(Globals.DBConnectionKey, CurrentUser);

            return(roleManager.AddBlockedUser(targetUserUUID, CurrentUser));
        }