Example #1
0
 public IHttpActionResult GET(int id = -1)
 {
     if (id == -1)
     {
         return(Ok(_adapter.GetAllBikes()));
     }
     else
     {
         return(Ok(_adapter.GetBike(id)));
     }
 }