private tbPayment GetPayment(int id)
        {
            try
            {
                bool func(tbPayment x) => x.pay_id == id;

                ServicePaymentBusiness business = new ServicePaymentBusiness();
                var result = business.Read(func) as List <tbPayment>;
                return(result.FirstOrDefault());
            }
            catch (Exception ex)
            {
                log.Error("Error: " + ex.Message);
                if (ex.InnerException != null)
                {
                    log.Error("Inner exception: " + ex.InnerException.Message);
                }
                throw ex;
            }
        }