public void SetWhat(TypeObject value) => TypeObjectId = (value == null ? 0 : value.TypeObjectId);
public TypeObject GetTypeObject() => TypeObject.List().First(x => x.TypeObjectId == TypeObjectId);
public TypeObject GetWhat() => TypeObject.List().FirstOrDefault(x => x.TypeObjectId == TypeObjectId);