public ActionResult People() { var model = new PersonGridModel(); model.Load(); return(Json(model, JsonRequestBehavior.AllowGet)); }
// GET: Site public ActionResult Index() { var model = new PersonGridModel() { Statistics = this.personManager.GetStatictics(), Persons = this.personManager.GetAllPersons(true, 0, 10), SystemUnit = this.siteHelper.GetSystemUnit(), Phrases = this.phrasesManager.GetAllPhrases(), }; return(View(model)); }
public ActionResult People(PersonGridModel model) { model.Load(); return(Json(model, JsonRequestBehavior.AllowGet)); }