public static void AddChangedEvent <TModel>(
            this IEvents events, params string[] changedPropertyNames) where TModel : Aggregate
        {
            var @event = new ModelChanged <TModel>(changedPropertyNames);

            events.Add(@event);
        }
Beispiel #2
0
 public int Post([FromBody] Events events)
 {
     return(_events.Add(events));
 }