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);
            }
        }
Exemple #2
0
 public ActionResult <IEnumerable <Student> > Get()
 {
     return(ServiceStudent.GetAll());
 }
Exemple #3
0
 void GetData()
 {
     dataGridView1.DataSource = _serviceStudent.GetAll();
 }