public int GetPaymentMethodCode(string name) { var methodService = new PaymentMethodsService(new ContextUnitOfWork()); return(methodService.GetPaymentMethodId(name)); }
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()); }