public DeleteClientCommand(DeleteClientContract contract) { Contract = contract; }
public async Task <IActionResult> Delete([FromBody] DeleteClientContract contract) { var result = await mediator.Send(new DeleteClientCommand(contract)); return(Ok()); }