Exemplo n.º 1
0
 public IHttpActionResult DisenroleStudent(int id, string ssn)
 {
     try
     {
         _service.DisenroleStudent(id, ssn);
         return(StatusCode(HttpStatusCode.NoContent));
     }
     catch (NotFoundException)
     {
         return(StatusCode(HttpStatusCode.NotFound));
     }
     catch (DbException)
     {
         return(InternalServerError());
     }
 }