public void Post([FromBody] TimeAmountAddCmd amountAdd) { _timesRepository.Add(amountAdd); }
public void Add(TimeAmountAddCmd amountAdd) { var newAmount = _commandHandler.Handle(amountAdd); Add(newAmount); }