Esempio n. 1
0
        static void GetAllStudents()
        {
            var allrecords = _serviceStudent.GetAll();

            Console.WriteLine("GetAll Test");

            foreach (var rc in allrecords)
            {
                Console.WriteLine("Id:{0} Firstname:{1} Lastname:{2}", rc.Id, rc.Firstname, rc.Lastname);
            }
        }
Esempio n. 2
0
 public ActionResult <IEnumerable <Student> > Get()
 {
     return(ServiceStudent.GetAll());
 }
Esempio n. 3
0
 void GetData()
 {
     dataGridView1.DataSource = _serviceStudent.GetAll();
 }