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

            return(methodService.GetPaymentMethodId(name));
        }
Beispiel #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());
        }