public static STD_QuestionChapter GetSTD_QuestionChapterByQuestion_ChapterID(int Question_ChapterID) { STD_QuestionChapter sTD_QuestionChapter = new STD_QuestionChapter(); SqlSTD_QuestionChapterProvider sqlSTD_QuestionChapterProvider = new SqlSTD_QuestionChapterProvider(); sTD_QuestionChapter = sqlSTD_QuestionChapterProvider.GetSTD_QuestionChapterByQuestion_ChapterID(Question_ChapterID); return sTD_QuestionChapter; }
public static DataSet GetDropDownListAllSTD_QuestionChapter() { DataSet sTD_QuestionChapters = new DataSet(); SqlSTD_QuestionChapterProvider sqlSTD_QuestionChapterProvider = new SqlSTD_QuestionChapterProvider(); sTD_QuestionChapters = sqlSTD_QuestionChapterProvider.GetDropDownListAllSTD_QuestionChapter(); return sTD_QuestionChapters; }
public static void LoadSTD_QuestionChapterPage(System.Web.UI.WebControls.GridView gv, System.Web.UI.WebControls.Repeater rptPager, int pageIndex, DropDownList ddlPageSize) { int recordCount=0; int PageSize = int.Parse(ddlPageSize.SelectedValue); SqlSTD_QuestionChapterProvider sqlSTD_QuestionChapterProvider = new SqlSTD_QuestionChapterProvider(); DataSet ds = sqlSTD_QuestionChapterProvider.GetSTD_QuestionChapterPageWise(pageIndex, PageSize, out recordCount); gv.DataSource = ds; gv.DataBind(); sTD_QuestionChaptersPaggination(rptPager,recordCount, pageIndex, PageSize); }
public static int InsertSTD_QuestionChapter(STD_QuestionChapter sTD_QuestionChapter) { SqlSTD_QuestionChapterProvider sqlSTD_QuestionChapterProvider = new SqlSTD_QuestionChapterProvider(); return sqlSTD_QuestionChapterProvider.InsertSTD_QuestionChapter(sTD_QuestionChapter); }
public static bool DeleteSTD_QuestionChapter(int sTD_QuestionChapterID) { SqlSTD_QuestionChapterProvider sqlSTD_QuestionChapterProvider = new SqlSTD_QuestionChapterProvider(); return sqlSTD_QuestionChapterProvider.DeleteSTD_QuestionChapter(sTD_QuestionChapterID); }
public static bool UpdateSTD_QuestionChapter(STD_QuestionChapter sTD_QuestionChapter) { SqlSTD_QuestionChapterProvider sqlSTD_QuestionChapterProvider = new SqlSTD_QuestionChapterProvider(); return sqlSTD_QuestionChapterProvider.UpdateSTD_QuestionChapter(sTD_QuestionChapter); }