public JsonResult GetAll() { return(new JsonResult() { Data = new { Success = true, Data = ModelReposity.FindAll().Select(m => new EvernoteModel(m)).ToArray() }, JsonRequestBehavior = JsonRequestBehavior.AllowGet }); }
public ActionResult EvernoteList() { var model = ModelReposity.FindAll().Select(m => new EvernoteModel(m)).ToList(); return(View(model)); }