public async Task <IActionResult> CreateTithe(TitheParameters parameters) { var result = await _mediator.Send(new CreateTitheCommand(parameters)); return((result != null) ? CreatedAtRoute(nameof(GetTitheById), new { result.Id }, result) : (IActionResult)BadRequest()); }
public async Task <IActionResult> UpdateTithe(Guid id, TitheParameters parameters) { await _mediator.Send(new UpdateTitheCommand(id, parameters)); return(NoContent()); }