public int InsertContest(contest contest) { string sql = "insert into contest(con_title,con_intro,con_place,con_time) values(@con_title,@con_intro,@con_place,@con_time)"; SqlParameter[] sp = { new SqlParameter("@con_title", contest.con_title), new SqlParameter("@con_intro", contest.con_intro), new SqlParameter("@con_place", contest.con_place), new SqlParameter("con_time", contest.con_time), }; return(DBHelper.GetExcuteNonQuery(sql, sp)); }
public static int InsertContest(contest contest) { return(icontest.InsertContest(contest)); }