public virtual ActionResult Edit(string fileName) { ReadingNoteDraft readNotes = ReadingNoteDraft.CreateFromString(StorageHelper.GetJSonReadingNotes(fileName)); readNotes.FileName = fileName; return(View(Views.ReadingNoteDraftEdit, readNotes)); }
public virtual ActionResult Save(ReadingNoteDraft readNotes) { StorageHelper.SaveJSonReadingNotesToStorage(Newtonsoft.Json.JsonConvert.SerializeObject(readNotes), readNotes.FileName); return(RedirectToAction(MVC.Draft.Index())); }