Example #1
0
        public int InsertAct(Model.Activitys activity)
        {
            int id = -1;

            if (DalBase.Insert(activity) > 0)
            {
                id = DalBase.GetMax <Model.Activitys>();
            }
            return(id);
        }
Example #2
0
 public int UpdAct(Model.Activitys activity)
 {
     return(DalBase.Updata(activity));
 }