Priya.InfoList.Views.InfoDetailView.GetListView C# (CSharp) Method

GetListView() public static method

public static GetListView ( long pageNo, long itemsPerPage, long dataIndex, string templateSuffix, long infoSectionId, bool loadListScript, bool loadList ) : string
pageNo long
itemsPerPage long
dataIndex long
templateSuffix string
infoSectionId long
loadListScript bool
loadList bool
return string
        public static string GetListView(long pageNo, long itemsPerPage, long dataIndex, string templateSuffix, long infoSectionId, bool loadListScript, bool loadList)
        {
            string htmlListScript = "";
            if (loadListScript == true)
            {
                htmlListScript = GetListScript();
            }
            string htmlListDetail = GetListDetailView(pageNo, itemsPerPage, dataIndex, templateSuffix, infoSectionId, loadList);

            string message;
            var templateList = new TemplateInfoDetailList
            {
                ListScript = htmlListScript,
                ListDetail = htmlListDetail,
                InfoSectionId = infoSectionId.ToString()
            };
            string htmlList = templateList.GetFilled(templateSuffix, UtilsGeneric.Validate, UtilsGeneric.ThrowException,
                                                                  out message);
            return htmlList;
        }