public bool Update(string ItemName, string ItemValue1, string ItemValue2) { Model.SysParamInfo model = GetModelList(string.Format(" ItemName={0}", ItemName))[0]; model.ItemValue1 = ItemValue1; model.ItemValue2 = ItemValue2; return(Update(model)); }
/// <summary> /// 更新一条数据 /// </summary> public bool Update(Model.SysParamInfo model) { return(dal.Update(model)); }
/// <summary> /// 增加一条数据 /// </summary> public int Add(Model.SysParamInfo model) { return(dal.Add(model)); }