/// <summary> /// This function will have the business logic for displaying the data /// </summary> /// <returns>A list of StudentDTO objects</returns> public List <StudentDTO> GetBL() { List <Student> ListSTD = stddal.GetDL(); List <StudentDTO> ListDTO = new List <StudentDTO>(); foreach (var std in ListSTD) { ListDTO.Add(mapper.ToDtoObj(std)); } return(ListDTO); }