public ActionResult Munge(string journalTxt)
 {
     ViewBag.Message = "Paste the info page below.";
     var munger = new Munger(Server.MapPath(file), ConfigurationManager.ConnectionStrings["SqliteConnectionStr"].ConnectionString);
     munger.Munge(journalTxt, Session.Contents.SessionID);
     return View("~/Views/Home/Index.cshtml");
 }
 public MainWindow()
 {
     InitializeComponent();
     var connString = "Data Source={0};Version=3;";
     munger = new Munger(connString);
     itemsAddedTxt.Text = "0";
 }
 public ActionResult Copy()
 {
     ViewBag.Message = "Go back to ~/Index to start over";
     var munger = new Munger(Server.MapPath(file), ConfigurationManager.ConnectionStrings["SqliteConnectionStr"].ConnectionString);
     var rows = munger.GetCopy(Session.Contents.SessionID);
     ViewBag.Rows = rows;
     munger.Clear(Session.Contents.SessionID);
     return View();
 }