예제 #1
0
        bool DeleteItem(ServiceProtocol serviceProtocol, Int64 requestID, Guid guid)
        {
            if (true) // Decide whether to delete an item.
            {         // We're going to do it.
              // Delete the item.

                // Raise event(s).
                serviceProtocol.DoItemDeleted(requestID, guid);

                return(true);
            }
            else
            { // We're not going to do it.
                return(false);
            }
        }
예제 #2
0
  bool DeleteItem(ServiceProtocol serviceProtocol, Int64 requestID, Guid guid)
  {
    if (true) // Decide whether to delete an item.
    { // We're going to do it.
      // Delete the item.

      // Raise event(s).
      serviceProtocol.DoItemDeleted(requestID, guid);

      return true;
    }
    else
    { // We're not going to do it.
      return false;
    }
  }