public IActionResult AddNewTeacher(CTeacher newTeacher, int userId) { if (DbActions.ValidateRequest(Request)) { DbActions.AddNewTeacher(newTeacher, userId); return(StatusCode(200)); } return(StatusCode(401)); }