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); } }
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; } }