Exemplo n.º 1
0
        public IActionResult DeleteStudent(int id)
        {
            MockDbService  mock  = new MockDbService();
            List <Student> studs = mock.GetStudents().ToList();

            studs.Remove(studs.Find(s => s.IdStudent == id));

            return(Ok("Usuwanie ukonczone"));
        }
 public IEnumerable <Student> GetStudents()
 {
     return(_mockDb.GetStudents());
 }