public EventType ReadEventType(long eventTypeID) { Result.Reset(); EventType eventType = eventTypeContext.Read(eventTypeID); if (eventType == null) { Result.CustomMessage = "Could not find the requested EventType"; } if (eventTypeContext.Result.IsError) { Result = eventTypeContext.Result; Result.CustomMessage = "There was a problem retrieving the requested EventType"; } return(eventType); }