コード例 #1
0
 IEnumerable <PaymentGatewayDto> IPaymentGatewayRepository.GetAllPaymentGateways()
 {
     return(_dbContext.PaymentGateway.ToList().Select(x => PaymentGatewayRepository.MapToDto(x)));
 }
コード例 #2
0
        PaymentGatewayDto IPaymentGatewayRepository.GetPaymentGateway(int paymentGatewayId)
        {
            PaymentGateway t = _dbContext.PaymentGateway.FirstOrDefault(x => x.PaymentGatewayId == paymentGatewayId);

            return(t != null?PaymentGatewayRepository.MapToDto(t) : null);
        }