public static T LoadIf <T>(this IDbStore dbStore, object id) where T : IEntity { return(id == null ? default(T) : dbStore.Load <T>(id)); }
public T Load <T>(object id) where T : IEntity { return(_dbStore.Load <T>(id)); }