public static STD_QuestionType GetSTD_QuestionTypeByQuestionTypeID(int QuestionTypeID) { STD_QuestionType sTD_QuestionType = new STD_QuestionType(); SqlSTD_QuestionTypeProvider sqlSTD_QuestionTypeProvider = new SqlSTD_QuestionTypeProvider(); sTD_QuestionType = sqlSTD_QuestionTypeProvider.GetSTD_QuestionTypeByQuestionTypeID(QuestionTypeID); return sTD_QuestionType; }
public static DataSet GetDropDownListAllSTD_QuestionType() { DataSet sTD_QuestionTypes = new DataSet(); SqlSTD_QuestionTypeProvider sqlSTD_QuestionTypeProvider = new SqlSTD_QuestionTypeProvider(); sTD_QuestionTypes = sqlSTD_QuestionTypeProvider.GetDropDownListAllSTD_QuestionType(); return sTD_QuestionTypes; }
public static void LoadSTD_QuestionTypePage(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_QuestionTypeProvider sqlSTD_QuestionTypeProvider = new SqlSTD_QuestionTypeProvider(); DataSet ds = sqlSTD_QuestionTypeProvider.GetSTD_QuestionTypePageWise(pageIndex, PageSize, out recordCount); gv.DataSource = ds; gv.DataBind(); sTD_QuestionTypesPaggination(rptPager,recordCount, pageIndex, PageSize); }
public static bool UpdateSTD_QuestionType(STD_QuestionType sTD_QuestionType) { SqlSTD_QuestionTypeProvider sqlSTD_QuestionTypeProvider = new SqlSTD_QuestionTypeProvider(); return sqlSTD_QuestionTypeProvider.UpdateSTD_QuestionType(sTD_QuestionType); }
public static int InsertSTD_QuestionType(STD_QuestionType sTD_QuestionType) { SqlSTD_QuestionTypeProvider sqlSTD_QuestionTypeProvider = new SqlSTD_QuestionTypeProvider(); return sqlSTD_QuestionTypeProvider.InsertSTD_QuestionType(sTD_QuestionType); }
public static bool DeleteSTD_QuestionType(int sTD_QuestionTypeID) { SqlSTD_QuestionTypeProvider sqlSTD_QuestionTypeProvider = new SqlSTD_QuestionTypeProvider(); return sqlSTD_QuestionTypeProvider.DeleteSTD_QuestionType(sTD_QuestionTypeID); }