public int InsertAct(Model.Activitys activity) { int id = -1; if (DalBase.Insert(activity) > 0) { id = DalBase.GetMax <Model.Activitys>(); } return(id); }
public int UpdAct(Model.Activitys activity) { return(DalBase.Updata(activity)); }