示例#1
0
        public int GetPaymentMethodCode(string name)
        {
            var methodService = new PaymentMethodsService(new ContextUnitOfWork());

            return(methodService.GetPaymentMethodId(name));
        }
示例#2
0
        public string GetPaymentMethodName(int?id)
        {
            var methodService = new PaymentMethodsService(new ContextUnitOfWork());

            return(methodService.GetPaymentMethod(id.Value));
        }
        public IEnumerable <PaymentMethodsDTO> GetPaymentMethods()
        {
            var methodsService = new PaymentMethodsService(new ContextUnitOfWork());

            return(methodsService.GetPaymentMethods());
        }