Beispiel #1
0
        public ActionResult Facility()
        {
            ContentPageModel   cp = new ContentPageModel(connectionString);
            List <ContentPage> contentfacility = cp.GetContentPageFacility("facility");

            ViewBag.contentPage = contentfacility;
            return(View());
        }
Beispiel #2
0
        public JsonResult ListAll()
        {
            ContentPageModel cp = new ContentPageModel(connectionString);

            return(Json(cp.GetContentPageFacility("facility")));
        }
Beispiel #3
0
        public JsonResult GetFacilityById(int id)
        {
            ContentPageModel cp = new ContentPageModel(connectionString);

            return(Json(cp.GetContentPageFacility("facility").Find(p => p.id == id)));
        }