/// <summary> /// Creates the registration view. /// </summary> /// <param name="aboutUsSourceCollection">The about us source collection.</param> /// <returns>Registration view model</returns> /// <exception cref="ArgumentNullException">aboutUsSourceCollection</exception> public IUserAgentofDeductionView CreateRegistrationView(IList <IIndustry> industries) { var industriesDDL = GetIndustryDropDownList.GetIndustry(industries, -1); var view = new UserAgentOfDeductionView { IndustryList = industriesDDL, }; return(view); }
/// <summary> /// Creates the updated registraion view. /// </summary> /// <param name="registrationInfo">The registration information.</param> /// <param name="processingMessage">The processing message.</param> /// <param name="aboutUsSourceCollection">The about us source collection.</param> /// <returns></returns> public IUserAgentofDeductionView CreateUpdatedRegistraionView(IUserAgentofDeductionView userAgentofDeductionView, string processingMessage, IList <IIndustry> industries) { if (userAgentofDeductionView == null) { throw new ArgumentNullException(nameof(userAgentofDeductionView)); } var industryDDl = GetIndustryDropDownList.GetIndustry(industries, userAgentofDeductionView.IndustryId); userAgentofDeductionView.ProcessingMessage = processingMessage; userAgentofDeductionView.IndustryList = industryDDl; return(userAgentofDeductionView); }