Ejemplo n.º 1
0
        public ActionResult FillDocument(int id)
        {
            var template = _templatesRepositoryHandler.FindById(id);

            template = new HtmlDocumentHandler(GetUserName()).ConvertView(template);

            ViewBag.FullName = GetUserName();
            return(View(DocumentTemplateController.ConvertToModel(template)));
        }
Ejemplo n.º 2
0
        public ActionResult ConvertView(DocumentTemplate template)
        {
            var userName = new MainController().GetUserName();

            var newTemplate =
                new HtmlDocumentHandler(userName)
                .ConvertView(DocumentTemplateController.ConvertToBlModel(template));

            return(View(DocumentTemplateController.ConvertToModel(newTemplate)));
        }