Exemple #1
0
 public IActionResult UpdateTeacher(CTeacher teacherToUpdate, int userId)
 {
     if (DbActions.ValidateRequest(Request))
     {
         DbActions.UpdateExistingTeacher(teacherToUpdate, userId);
         return(StatusCode(200));
     }
     return(StatusCode(401));
 }