Exemplo n.º 1
0
 public object[] GetAllInvoiceOverDue()
 {
     using (var db = new KoontabiDBEntities())
     {
         db.Database.ExecuteSqlCommand("Exec UpdateDayDelayInPaidAccounts");
         var      result1        = db.Sp_GetAllInvoicesOverDue().ToList();
         var      result2        = db.Sp_GetAllInvoicesDetailsOverDue().ToList();
         Object[] InvoiceOverDue = new Object[] { result1, result2 };
         return(InvoiceOverDue);
     }
 }