/// <summary>
        /// Creates the training need analysis view.
        /// </summary>
        /// <param name="trainingNeedAnalysus">The training need analysus.</param>
        /// <param name="companyCollection">The company collection.</param>
        /// <param name="training">The training.</param>
        /// <param name="jobCollection">The job collection.</param>
        /// <param name="frequencyOfDeliveryCollection">The frequency of delivery collection.</param>
        /// <param name="currencyCollection">The currency collection.</param>
        /// <param name="message">The message.</param>
        /// <returns></returns>
        public ITrainingNeedAnalysisView CreateTrainingNeedAnalysisView(ITrainingNeedAnalysisView trainingNeedAnalysus, IList <ITraining> training, IList <IJobTitle> jobCollection, IList <IFrequencyOfDeliveryModel> frequencyOfDeliveryCollection, IList <ICurrency> currencyCollection, IList <IMethodOfDelivery> methodOfDeliveryCollection, string message)
        {
            var TrainingDDL            = GetDropDownList.TrainingListItems(training, trainingNeedAnalysus.TrainingID);
            var jobDDL                 = GetDropDownList.JobTitlesListItems(jobCollection, trainingNeedAnalysus.JobID);
            var FrequencyOfDeliveryDDL = GetDropDownList.FrequencyOfDeliveryListItems(frequencyOfDeliveryCollection, trainingNeedAnalysus.FrequencyOfDeliveryID);
            var CurrencyDDL            = GetDropDownList.CurrencyListItems(currencyCollection, trainingNeedAnalysus.Currency);
            var methodOfDeliveryDDL    = GetDropDownList.MethondOfDeliveryListItems(methodOfDeliveryCollection, trainingNeedAnalysus.MethodOfDelivery);

            trainingNeedAnalysus.JobDropDownList                 = jobDDL;
            trainingNeedAnalysus.TrainingDropDownList            = TrainingDDL;
            trainingNeedAnalysus.CurrencyDropDownList            = CurrencyDDL;
            trainingNeedAnalysus.FrequencyOfDeliveryDropDownList = FrequencyOfDeliveryDDL;
            trainingNeedAnalysus.MethodOfDeliveryDropDown        = methodOfDeliveryDDL;

            trainingNeedAnalysus.ProcessingMessage = message;

            return(trainingNeedAnalysus);
        }
        //----------------------------------------------Training Calendar Section End----------------------------------------------------------------//

        //-----------------------------------------------Training Analysis Section-----------------------------------------------------------------------//

        /// <summary>
        /// Creates the training need analysis view.
        /// </summary>
        /// <param name="companyCollection">The company collection.</param>
        /// <param name="training">The training.</param>
        /// <param name="jobCollection">The job collection.</param>
        /// <param name="frequencyOfDeliveryCollection">The frequency of delivery collection.</param>
        /// <param name="currencyCollection">The currency collection.</param>
        /// <returns></returns>
        public ITrainingNeedAnalysisView CreateTrainingNeedAnalysisView(int companyId, IList <ITraining> training, IList <IJobTitle> jobCollection, IList <IFrequencyOfDeliveryModel> frequencyOfDeliveryCollection, IList <ICurrency> currencyCollection, IList <IMethodOfDelivery> methodOfDeliveryCollection)
        {
            var TrainingDDL            = GetDropDownList.TrainingListItems(training, -1);
            var jobDDL                 = GetDropDownList.JobTitlesListItems(jobCollection, -1);
            var FrequencyOfDeliveryDDL = GetDropDownList.FrequencyOfDeliveryListItems(frequencyOfDeliveryCollection, -1);
            var CurrencyDDL            = GetDropDownList.CurrencyListItems(currencyCollection, -1);
            var methodOfDeliveryDDL    = GetDropDownList.MethondOfDeliveryListItems(methodOfDeliveryCollection, -1);

            var Model = new TrainingNeedAnalysisView
            {
                TrainingDropDownList            = TrainingDDL,
                JobDropDownList                 = jobDDL,
                FrequencyOfDeliveryDropDownList = FrequencyOfDeliveryDDL,
                CurrencyDropDownList            = CurrencyDDL,
                MethodOfDeliveryDropDown        = methodOfDeliveryDDL,
                CompanyID = companyId
            };

            return(Model);
        }
        /// <summary>
        /// Creates the edit training analysis view.
        /// </summary>
        /// <param name="trainingNeedAnalysis">The training need analysis.</param>
        /// <param name="companyCollection">The company collection.</param>
        /// <param name="training">The training.</param>
        /// <param name="jobCollection">The job collection.</param>
        /// <param name="frequencyOfDeliveryCollection">The frequency of delivery collection.</param>
        /// <param name="currencyCollection">The currency collection.</param>
        /// <param name="methodOfDeliveryCollection">The method of delivery collection.</param>
        /// <param name="message">The message.</param>
        /// <returns></returns>
        public ITrainingNeedAnalysisView CreateEditTrainingAnalysisView(ITrainingNeedAnalysis trainingNeedAnalysis, IList <ITraining> training,
                                                                        IList <IJobTitle> jobCollection, IList <IFrequencyOfDeliveryModel> frequencyOfDeliveryCollection, IList <ICurrency> currencyCollection, IList <IMethodOfDelivery> methodOfDeliveryCollection, string message)
        {
            var TrainingDDL               = GetDropDownList.TrainingListItems(training, trainingNeedAnalysis.TrainingId);
            var jobDDL                    = GetDropDownList.JobTitlesListItems(jobCollection, trainingNeedAnalysis.JobId);
            var FrequencyOfDeliveryDDL    = GetDropDownList.FrequencyOfDeliveryListItems(frequencyOfDeliveryCollection, trainingNeedAnalysis.FrequecyOfDeliveryId);
            var CurrencyDDL               = GetDropDownList.CurrencyListItems(currencyCollection, trainingNeedAnalysis.CurrencyId);
            var approvedBudgetCurrencyDDL = GetDropDownList.CurrencyListItems(currencyCollection, trainingNeedAnalysis.ApprovedBudgetCurrency);
            var methodOfDeliveryDDL       = GetDropDownList.MethondOfDeliveryListItems(methodOfDeliveryCollection, trainingNeedAnalysis.MethodOfDelivery);

            var Model = new TrainingNeedAnalysisView
            {
                TrainingNeedAnalysisID = trainingNeedAnalysis.TrainingNeedAnaylsisId,
                TrainingID             = trainingNeedAnalysis.TrainingId,
                TrainingDescription    = trainingNeedAnalysis.TrainingDescription,
                JobID                              = trainingNeedAnalysis.JobId,
                TrainingDuration                   = trainingNeedAnalysis.TrainingDuration,
                TrainingName                       = trainingNeedAnalysis.TrainingName,
                TrainingProvider                   = trainingNeedAnalysis.TrainingProvider,
                MethodOfDelivery                   = trainingNeedAnalysis.MethodOfDelivery,
                Cost                               = trainingNeedAnalysis.Cost,
                Location                           = trainingNeedAnalysis.Location,
                IsProviderApproved                 = trainingNeedAnalysis.IsProviderApproved,
                ApprovedBudget                     = trainingNeedAnalysis.ApprovedBudget,
                ApprovedBudgetCurrency             = trainingNeedAnalysis.ApprovedBudgetCurrency,
                FrequencyOfDeliveryID              = trainingNeedAnalysis.FrequecyOfDeliveryId,
                CompanyID                          = trainingNeedAnalysis.CompanyId,
                CertificateIssued                  = trainingNeedAnalysis.CertificateIssued,
                TrainingDropDownList               = TrainingDDL,
                JobDropDownList                    = jobDDL,
                FrequencyOfDeliveryDropDownList    = FrequencyOfDeliveryDDL,
                CurrencyDropDownList               = CurrencyDDL,
                MethodOfDeliveryDropDown           = methodOfDeliveryDDL,
                Currency                           = trainingNeedAnalysis.CurrencyId,
                ProcessingMessage                  = message,
                ApprovedBudgetCurrencyDropDownList = approvedBudgetCurrencyDDL
            };

            return(Model);
        }