public virtual async Task <IActionResult> Create([FromBody] CreateRateCommand command) { command.AccountId = User.GetUserId(); GetRateDto item = await _mediator.Send(command); return(CreatedAt(item)); }
public virtual async Task <IActionResult> Update(long id, [FromBody] UpdateRateCommand command) { command.Id = id; command.AccountId = User.GetUserId(); GetRateDto item = await _mediator.Send(command); return(Ok(item)); }