public ActionResult Index() { var contentsQuery = contentModel.SelectAll(); ViewBag.Contents = EncodeJsString(JsonConvert.SerializeObject(contentsQuery)); return(View()); }