private IBaseControl Base() { IBaseControl obj = null; Cookie Cookie = new Cookie(); Enumerations.PageType CookiePageType = (Enumerations.PageType)(int.Parse(Cookie.Read(EnumUtil.Cookies.PageType))); if (CookiePageType == Enumerations.PageType.Company) { obj = new BaseCompany(); } else if (CookiePageType == Enumerations.PageType.Employee) { obj = new BaseEmployee(); } else { Util.GoToEntryPage(this.Response); } return(obj); }
public static DataTable GetPageAndMemberDetailBySubjectdIDAndPageTypeID(int SubjectID, Enumerations.PageType PageType, int PageCategoryID) { return(BINROTA.DAL.Pages.GetPageAndMemberDetailBySubjectdIDAndPageTypeID(SubjectID, (int)PageType, PageCategoryID)); }