public IActionResult AssignClass(int id, [FromBody] AssignClassViewModel model) { Result result = _teacherService.AssignClass(id, model.ClassId); return(this.CreateResult(result)); }