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