public Nullable <Int32> SpGetLastInvoiceNumber()
 {
     using (var db = new KoontabiDBEntities())
     {
         return(db.Sp_GetLastInvoiceNumber().FirstOrDefault().InvoiceNumber);
     }
 }