public bool DeleteStudent(int Id)
        {
            bool       result = false;
            StudentDTo obj    = _Students.FirstOrDefault((StudentDTo arg) => arg.Id == Id);

            if (obj != null)
            {
                _Students.Remove(obj);
                result = true;
            }
            return(result);
        }
        public StudentDTo UpdateStudent(StudentDTo newStudent)
        {
            StudentDTo result = _Students.FirstOrDefault((StudentDTo arg) => arg.Id == newStudent.Id);

            if (result != null)
            {
                result.Name       = newStudent.Name;
                result.StudentFee = newStudent.StudentFee;
                result.Credit     = newStudent.Credit;
            }
            return(result);
        }
 public void AddStudent(StudentDTo newStudent)
 {
     _Students.Add(newStudent);
 }
        public StudentDTo GetStudentById(int Id)
        {
            StudentDTo result = _Students.FirstOrDefault((StudentDTo arg) => arg.Id == Id);

            return(result);
        }