Esempio n. 1
0
        public PaymentMethod GetPaymentbyId(int id)
        {
            PaymentMethod payment;

            try
            {
                payment = _paymentMethodRepository.FindOne(x => x.PaymentMethodId == id && x.IsActive == true);
            }
            catch (Exception exception)
            {
                throw new Exception(exception.Message);
            }
            return(payment);
        }