public static void AddChangedEvent <TModel>( this IEvents events, params string[] changedPropertyNames) where TModel : Aggregate { var @event = new ModelChanged <TModel>(changedPropertyNames); events.Add(@event); }
public int Post([FromBody] Events events) { return(_events.Add(events)); }