IEnumerable <PaymentGatewayDto> IPaymentGatewayRepository.GetAllPaymentGateways() { return(_dbContext.PaymentGateway.ToList().Select(x => PaymentGatewayRepository.MapToDto(x))); }
PaymentGatewayDto IPaymentGatewayRepository.GetPaymentGateway(int paymentGatewayId) { PaymentGateway t = _dbContext.PaymentGateway.FirstOrDefault(x => x.PaymentGatewayId == paymentGatewayId); return(t != null?PaymentGatewayRepository.MapToDto(t) : null); }