public async Task <ApiResponse> EditCurrency([FromBody] EditCurrencyCommand model) { var userId = User.FindFirst(ClaimTypes.NameIdentifier).Value; model.ModifiedById = userId; model.ModifiedDate = DateTime.UtcNow; model.CreatedById = userId; model.CreatedDate = DateTime.UtcNow; return(await _mediator.Send(model)); }
public async Task <IActionResult> Edit([FromBody] EditCurrencyCommand command) { return(await Execute(command)); }