Example #1
0
        public ActionResult GetAllPeople()
        {
            DataBaseManger db     = new DataBaseManger(Properties.Settings.Default.constr);
            var            people = db.GetAllPeople();

            return(Json(people));
        }
Example #2
0
        public ActionResult Index()
        {
            DataBaseManger       db     = new DataBaseManger(Properties.Settings.Default.constr);
            IEnumerable <person> people = db.GetAllPeople();

            return(View(people));
        }