Example #1
0
        // GET: Student
        public ActionResult Index()
        {
            //invokig business logic layer
            List <Student> students = TrainingManager.GetAllStudents();

            return(View(students));
        }
        // GET: api/Product
        public IEnumerable <Student> Get()
        {
            List <Student> students = TrainingManager.GetAllStudents();

            return(students);

            //return new string[] { "value1", "value2" };
        }