Example #1
0
 /// <summary>
 /// 新增
 /// </summary>
 /// <param name="obj"></param>
 /// <returns></returns>
 public static bool Save(Dt_commission obj)
 {
     try
     {
         obj.Save();
         return(true);
     }
     catch (Exception ex)
     {
         Log.Error(ex.Message);
         return(false);
     }
 }
Example #2
0
 public static int cableSave(Dt_commission c)
 {
     try
     {
         c.Save();
         return(c.Id);
     }
     catch (Exception ex)
     {
         Log.Error(ex.Message);
         return(-1);
     }
 }