public ActionResult GenerateHtmlFiles(GenerateHtmlFilesModel model)
        {
            using (var db = new CheatNotesContext())
            {
                var cheatNote = db.CheatNotes.Get(model.CheatNoteId);
                var partSize = !model.PartSize.HasValue || model.PartSize.Value <= 100 ? null : (long?)(model.PartSize * 1024 / FileSizeMultiplier);

                model.HtmlInfos = UpdateCheatNoteHtmls(db, model.CheatNoteId, CheatNoteHtmlGenerator.GenerateHtmlFiles(model.FileName, cheatNote, partSize));

                return View(model);
            }
        }
        public ActionResult GenerateHtmlFiles(int id)
        {
            using (var db = new CheatNotesContext())
            {
                var cheatNote = db.CheatNotes.Get(id);

                var model = new GenerateHtmlFilesModel(cheatNote)
                                {
                                    PartSize = 250,
                                    HtmlInfos = GetGeneratedHtmls(db, id)
                                };

                return View(model);
            }
        }