public List <ViewClassTeacher> GetClass_Id(int Class_Id)
        {
            List <ClassTeacher> list = _repository.GetClass_Id(Class_Id);

            List <ViewClassTeacher> model = new List <ViewClassTeacher>();

            foreach (var item in list)
            {
                model.Add(ViewClassTeacher.ToViewModel(item));
            }
            return(model);
        }
 public ViewClassTeacher GetById(int id)
 {
     return(ViewClassTeacher.ToViewModel(_repository.Get(id)));
 }