Esempio n. 1
0
 public static LlaveFactura GetLastLlaveFactura()
 {
     AppSales.DAL.LlaveFacturaDSTableAdapters.LlaveFacturaTableAdapter objDataSet = new AppSales.DAL.LlaveFacturaDSTableAdapters.LlaveFacturaTableAdapter();
     LlaveFacturaDS.LlaveFacturaDataTable dtLlaveFactura = objDataSet.GetLastLlaveFactura();
     if (dtLlaveFactura.Count > 0)
     {
         LlaveFactura objLlaveFactura = rowToDto(dtLlaveFactura[0]);
         return(objLlaveFactura);
     }
     return(null);
 }