public List <TeacherEntity> GetAllTeachers()
        {
            List <TeacherEntity> result    = new List <TeacherEntity>();
            TeachersRepository   teachRepo = new TeachersRepository();

            using (var uow = UnitOfWork.CreateUoW())
            {
                try
                {
                    var list = teachRepo.GetAllTeachers(uow);
                    result = list.Select(x => EntitiesMapper.ToEntity(x)).ToList();
                }
                catch (Exception ex)
                {
                    DbLog.LogError("Error retrieving all teachers", ex);
                    throw ex;
                }
            }
            return(result);
        }
 public List <TeacherDTO> GetAllTeachers()
 {
     return(_TeachersRepo.GetAllTeachers());
 }