Exemplo n.º 1
0
        public ActionResult Index()
        {
            string          nameOrConnectionString = ConfigurationManager.ConnectionStrings["DefaultConnection"].ConnectionString;
            DataBaseService school = new DataBaseService();

            school.CreateSchool(nameOrConnectionString);

            ViewBag.con = nameOrConnectionString;

            List <Student> students = new List <Student>();

            students = schoolApplicationService.GetStudents();

            return(View(students));
        }