예제 #1
0
        public async Task <IActionResult> CreatePaymentType(CreatePaymentTypeDto paymentTypeDto, ApiVersion version)
        {
            var result = await _repository.CreatePaymentTypeAsync(paymentTypeDto);

            return(CreatedAtRoute(new { id = result.Id, version = $"{version}" }, result));
        }