XHTML minification view model
Inheritance: MarkupMinificationViewModelBase
		public IActionResult Index(XhtmlMinificationViewModel model)
		{
			if (ModelState.IsValid)
			{
				model = _minificationService.Minify(model);

				ModelState.Clear();
			}

			return View(model);
		}
        public XhtmlMinificationViewModel GetInitializationData()
        {
            var settings = Mapper.Map<XhtmlMinificationSettingsViewModel>(new XhtmlMinificationSettings());
            var model = new XhtmlMinificationViewModel
            {
                SourceCode = string.Empty,
                Settings = settings,
                Result = null
            };

            return model;
        }
        public XhtmlMinificationViewModel Minify(XhtmlMinificationViewModel model)
        {
            string cssMinifierName = model.Settings.CssMinifierName;
            string jsMinifierName = model.Settings.JsMinifierName;

            var settings = Mapper.Map<XhtmlMinificationSettings>(model.Settings);
            ICssMinifier cssMinifier = _cssMinifierFactory.CreateMinifier(cssMinifierName);
            IJsMinifier jsMinifier = _jsMinifierFactory.CreateMinifier(jsMinifierName);

            var xhtmlMinifier = new XhtmlMinifier(settings, cssMinifier, jsMinifier);
            var result = xhtmlMinifier.Minify(model.SourceCode, true);

            model.Result = Mapper.Map<MarkupMinificationResultViewModel>(result);

            return model;
        }