/// <summary> /// Get the pager data using current page and totalPages. /// </summary> /// <param name="currentPage"></param> /// <param name="totalPages"></param> /// <param name="settings"></param> public static Pager Get(int currentPage, int totalPages, PagerSettings settings) { Pager data = new Pager(currentPage, totalPages, settings); return(data); }
/// <summary> /// Calculate the starting page and ending page. /// </summary> /// <param name="pagerData"></param> /// <param name="pagerSettings"></param> public static void Calculate(Pager pagerData, PagerSettings pagerSettings) { _instance.Calculate(pagerData, pagerSettings); }