public override void Handle(TryToAddNewEventsRequest request) { foreach (var domainEvent in request.NewEvents) { if (!IsRequestValid(request.SessionId, request.UserId, domainEvent.AggregateId.MedicalPracticeId)) { return; } } var addingSuccessful = dataCenter.AddEvents(request.NewEvents); Socket.SendNetworkMsg(new TryToAddNewEventsResponse(addingSuccessful)); }