示例#1
0
        /// <summary>
        /// Gets the job title edit view.
        /// </summary>
        /// <param name="jobTitleId">The job title identifier.</param>
        /// <param name="processingMesage">The processing mesage.</param>
        /// <returns></returns>
        /// <exception cref="ArgumentNullException">jobTitleData</exception>
        public IJobTitleView GetJobTitleEditView(int jobTitleId, string processingMesage)
        {
            //Get The Job By ID here
            var jobTitleData = jobTitleRepository.GetJobTitleById(jobTitleId);

            if (jobTitleData == null)
            {
                throw new ArgumentNullException(nameof(jobTitleData));
            }

            //Get The Updated View Here
            var viewModel = this.adminViewModelFactory.CreateEditJobTitleView(jobTitleData, processingMesage);

            return(viewModel);
        }