/// <summary> /// 方法名称: Insert /// 内容摘要: 插入一条新纪录 /// </summary> /// <returns>int</returns> public virtual object Insert(sysprog obj) { object result = null; try { result=_sysprogDao.Create<sysprog>(obj); } catch (Exception e) { throw e; } return result; }
/// <summary> /// 方法名称: Update /// 内容摘要: 更新一条新纪录 /// </summary> /// <returns>int</returns> public virtual int Update(sysprog obj) { int result = 0; try { result = _sysprogDao.Update<sysprog>(obj); } catch (Exception e) { throw e; } return result; }