/// <summary>
        /// Creates the updated income type jurisdiction view.
        /// </summary>
        /// <param name="jurisdictions">The jurisdictions.</param>
        /// <param name="incomeTypes">The income types.</param>
        /// <param name="processingMessage">The processing message.</param>
        /// <param name="incomeTypeListView">The income type ListView.</param>
        /// <returns></returns>
        public IIncomeTypeListView CreateUpdatedIncomeTypeJurisdictionView(IList <IJurisdiction> jurisdictions, IList <IIncomeType> incomeTypes, string processingMessage, IIncomeTypeListView incomeTypeListView)

        {
            var incomeTypeDDL   = GetDropdownIncomeTypeList.GetIncomeType(incomeTypes, -1);
            var jurisdictionDDL = GetJurisdictionDropdown.GetJurisdicions(jurisdictions, -1);

            incomeTypeListView.JurisdictionList  = jurisdictionDDL;
            incomeTypeListView.IncomeTypeList    = incomeTypeDDL;
            incomeTypeListView.ProcessingMessage = processingMessage;
            return(incomeTypeListView);
        }
        /// <summary>
        /// Creates the income type jurisdiction view.
        /// </summary>
        /// <param name="jurisdictions">The jurisdictions.</param>
        /// <param name="incomeTypes">The income types.</param>
        /// <param name="jurisdictionIncomeTypes">The jurisdiction income types.</param>
        /// <returns></returns>
        public IIncomeTypeListView CreateIncomeTypeJurisdictionView(IList <IJurisdiction> jurisdictions, IList <IIncomeType> incomeTypes)

        {
            var incomeTypeDDL   = GetDropdownIncomeTypeList.GetIncomeType(incomeTypes, -1);
            var jurisdictionDDL = GetJurisdictionDropdown.GetJurisdicions(jurisdictions, -1);
            var View            = new IncomeTypeListView
            {
                IncomeTypeList   = incomeTypeDDL,
                JurisdictionList = jurisdictionDDL,
            };

            return(View);
        }
        /// <summary>
        /// Creates the income type jurisdiction view.
        /// </summary>
        /// <param name="jurisdictionIncomeTypes">The jurisdiction income types.</param>
        /// <returns></returns>
        public IIncomeTypeListView CreateIncomeTypeJurisdictionView(IList <IJurisdictionIncomeType> jurisdictionIncomeTypes, string infoMessage, IList <IIncomeType> incomeTypes, IList <IJurisdiction> jurisdictions, int jurisdictionId)

        {
            var incomeTypeDDL   = GetDropdownIncomeTypeList.GetIncomeType(incomeTypes, -1);
            var jurisdictionDDL = GetJurisdictionDropdown.GetJurisdicions(jurisdictions, -1);

            var View = new IncomeTypeListView
            {
                IncomeTypeList          = incomeTypeDDL,
                JurisdictionList        = jurisdictionDDL,
                jurisdictionIncomeTypes = jurisdictionIncomeTypes,
                ProcessingMessage       = infoMessage,
                JurisdictionId          = jurisdictionId,
            };

            return(View);
        }
        /// <summary>
        /// Creates the tax report view.
        /// </summary>
        /// <param name="infoMessage">The information message.</param>
        /// <returns></returns>
        public ITaxReportView CreateTaxReportView(string infoMessage, IList <IIncomeType> incomeTypes, IDigitalFile fileType)
        {
            int?fileTypeId    = 0;
            var incomeTypeDDL = GetDropdownIncomeTypeList.GetIncomeType(incomeTypes, -1);

            if (fileType != null)
            {
                fileTypeId = fileType.DigitalFileId;
            }

            var taxReportView = new TaxReportView
            {
                FileTypeId        = fileTypeId,
                ProcessingMessage = infoMessage,

                IncomeTypes = incomeTypeDDL,
            };

            return(taxReportView);
        }