/// <summary> /// 更新委托 /// </summary> /// <param name="flowEntrust">委托实体</param> public int Update(Model.FlowEntrust flowEntrust) { ClearCache(); using (var db = new DataContext()) { db.Update(flowEntrust); return(db.SaveChanges()); } }
/// <summary> /// 更新委托 /// </summary> /// <param name="flowEntrust">委托实体</param> public int Update(Model.FlowEntrust flowEntrust) { return(flowEntrustData.Update(flowEntrust)); }
/// <summary> /// 添加一个委托 /// </summary> /// <param name="appLibrary"></param> /// <returns></returns> public int Add(Model.FlowEntrust flowEntrust) { return(flowEntrustData.Add(flowEntrust)); }