public async Task <IActionResult> CreatePaymentType(CreatePaymentTypeDto paymentTypeDto, ApiVersion version) { var result = await _repository.CreatePaymentTypeAsync(paymentTypeDto); return(CreatedAtRoute(new { id = result.Id, version = $"{version}" }, result)); }