Пример #1
0
 public JsonResult GetAll()
 {
     return(new JsonResult()
     {
         Data = new { Success = true, Data = ModelReposity.FindAll().Select(m => new EvernoteModel(m)).ToArray() }, JsonRequestBehavior = JsonRequestBehavior.AllowGet
     });
 }
Пример #2
0
        public ActionResult EvernoteList()
        {
            var model = ModelReposity.FindAll().Select(m => new EvernoteModel(m)).ToList();

            return(View(model));
        }