public IActionResult AssignedClass(int id)
        {
            Result <Class> result = _teacherService.AssignedClass(id);

            return(this.CreateResult <Class, AssignedClassViewModel>(result, o =>
            {
                o.ToViewModel = c => c.ToAssignedClassViewModel();
            }));
        }