// GET: LetterTemplate
        public ActionResult Index()
        {
            IDbRepoInstantiator factory = HttpContext.RequestServices.GetService(typeof(IDbRepoInstantiator)) as IDbRepoInstantiator;

            ViewBag.Excuses = factory.GetExcuseRepo().GetExcuseTitles();
            return(View(factory.GetLetterTemplateRepo().GetLetterTemplates()));
        }
        public ActionResult MakeLetter(int id, string excuseName)
        {
            IDbRepoInstantiator factory  = HttpContext.RequestServices.GetService(typeof(IDbRepoInstantiator)) as IDbRepoInstantiator;
            LetterTemplate      template = factory.GetLetterTemplateRepo().GetLetterTemplateInHtmlForm(id);

            ViewBag.Excuse = excuseName;
            return(View(nameof(Details), template));
        }
        // GET: LetterTemplate/Details/5
        public ActionResult Details(int id)
        {
            IDbRepoInstantiator factory  = HttpContext.RequestServices.GetService(typeof(IDbRepoInstantiator)) as IDbRepoInstantiator;
            LetterTemplate      template = factory.GetLetterTemplateRepo().GetLetterTemplateInHtmlForm(id);

            ViewBag.Excuse = "Flu";
            return(View(template));
        }