Beispiel #1
0
        public void Create([FromBody] ScheduleAddCmd command)
        {
            var newSchedule = _scheduleHandler.Handle(command);

            _scheduleRepository.Add(newSchedule);
        }
Beispiel #2
0
        public void Add(ScheduleAddCmd command)
        {
            var newAmount = _commandHandler.Handle(command);

            Add(newAmount);
        }