public void Create([FromBody] ScheduleAddCmd command) { var newSchedule = _scheduleHandler.Handle(command); _scheduleRepository.Add(newSchedule); }
public void Add(ScheduleAddCmd command) { var newAmount = _commandHandler.Handle(command); Add(newAmount); }