public static STD_ContactType GetSTD_ContactTypeByContactTypeID(int ContactTypeID) { STD_ContactType sTD_ContactType = new STD_ContactType(); SqlSTD_ContactTypeProvider sqlSTD_ContactTypeProvider = new SqlSTD_ContactTypeProvider(); sTD_ContactType = sqlSTD_ContactTypeProvider.GetSTD_ContactTypeByContactTypeID(ContactTypeID); return sTD_ContactType; }
public static DataSet GetDropDownListAllSTD_ContactType() { DataSet sTD_ContactTypes = new DataSet(); SqlSTD_ContactTypeProvider sqlSTD_ContactTypeProvider = new SqlSTD_ContactTypeProvider(); sTD_ContactTypes = sqlSTD_ContactTypeProvider.GetDropDownListAllSTD_ContactType(); return sTD_ContactTypes; }
public static void LoadSTD_ContactTypePage(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_ContactTypeProvider sqlSTD_ContactTypeProvider = new SqlSTD_ContactTypeProvider(); DataSet ds = sqlSTD_ContactTypeProvider.GetSTD_ContactTypePageWise(pageIndex, PageSize, out recordCount); gv.DataSource = ds; gv.DataBind(); sTD_ContactTypesPaggination(rptPager,recordCount, pageIndex, PageSize); }
public static bool UpdateSTD_ContactType(STD_ContactType sTD_ContactType) { SqlSTD_ContactTypeProvider sqlSTD_ContactTypeProvider = new SqlSTD_ContactTypeProvider(); return sqlSTD_ContactTypeProvider.UpdateSTD_ContactType(sTD_ContactType); }
public static int InsertSTD_ContactType(STD_ContactType sTD_ContactType) { SqlSTD_ContactTypeProvider sqlSTD_ContactTypeProvider = new SqlSTD_ContactTypeProvider(); return sqlSTD_ContactTypeProvider.InsertSTD_ContactType(sTD_ContactType); }
public static bool DeleteSTD_ContactType(int sTD_ContactTypeID) { SqlSTD_ContactTypeProvider sqlSTD_ContactTypeProvider = new SqlSTD_ContactTypeProvider(); return sqlSTD_ContactTypeProvider.DeleteSTD_ContactType(sTD_ContactTypeID); }