public static bool TryWithCreatedAt(this IDirectory model, out ICreatedAt feature) { Ensure.NotNull(model, "model"); return(model.TryWith <ICreatedAt>(out feature)); }
public static void SetCreatedAt(ICreatedAt model) { model.CreatedAt = DateTime.Now; }