public ActionResult <IEnumerable <CustomerPayments> > GetCustomerPayments(int id)
 {
     try
     {
         var payments = db.GetCustomerPayments(id);
         return(payments.ToList());
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }