private ContentItem Get(ref ContentItem item, int id) { if (item != null) { return(item); } if (persister != null && id != 0) { return(item = persister.Get(id)); } return(null); }
public T Load <T>(ValueType id) { return(new[] { persister.Get(Convert.ToInt32(id)) }.OfType <T>().FirstOrDefault()); }