Exemple #1
0
 public IHttpActionResult GetTeacherByUsername(string username)
 {
     if (teachersService.ExistsUsername(username) == false)
     {
         return(NotFound());
     }
     return(Ok(teachersService.GetByUsername(username)));
 }