/// <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); } }
public static int cableSave(Dt_commission c) { try { c.Save(); return(c.Id); } catch (Exception ex) { Log.Error(ex.Message); return(-1); } }