Пример #1
0
 /// <summary>
 /// Method which is injected a dependency
 /// </summary>
 /// <param name="studentDAL">Dependency injected</param>
 /// <param name="list">Student list</param>
 /// <param name="name">Student' name need to be searched</param>
 /// <returns>Student with spicific name</returns>
 public Student GetStudent(IStudentDAL studentDAL, List <Student> list, string name)
 {
     try
     {
         return(studentDAL.GetStudentByName(list, name));
     }
     catch { throw; }
 }