Ejemplo n.º 1
0
 public int InsertOrUpdate(Model.Member_Issue_Activity act)
 {
     using (var helper = new SqlHelper())
     {
         var id = new InternalMemberIssueActivity(helper).InsertOrUpdate(act);
         return(id);
     }
 }
        internal int InsertOrUpdate(Model.Member_Issue_Activity model)
        {
            var cmd = sqlHelper.PrepareStoredSqlCommand(SQLInsertOrUpdate);

            cmd.AddParam("@Id", model.Id);
            cmd.AddParam("@ISid", model.ISid);
            cmd.AddParam("@Acid", model.Acid);



            var parm = cmd.AddReturnValueParameter("ReturnValue");

            cmd.ExecuteNonQuery();
            return((int)parm.Value);
        }