Exemplo n.º 1
0
 // PUT: api/SurfSpots/5
 public void Put(int id, [FromBody] SurfSpot spot)
 {
     var surfSpotRepository = new SurfSpotRepository();
     var updatedSpot        = surfSpotRepository.Save(id, spot);
 }
Exemplo n.º 2
0
 // POST: api/SurfSpots
 public void Post([FromBody] SurfSpot spot)
 {
     var surfSpotRepository = new SurfSpotRepository();
     var newSpot            = surfSpotRepository.Save(spot);
 }