Beispiel #1
0
 public int Insert()
 {
     int nResult = 0;
     cProducts objInfor = new cProducts();
     try
     {
         objInfor.AddNew();
         this.MappingData(objInfor);
         objInfor.Save();
         nResult = objInfor.ProductID;
     }
     catch
     {
         nResult = 0;
     }
     return nResult;
 }