예제 #1
0
 public IActionResult Post([FromBody] Reservation reservation)
 {
     _repo.Add(reservation);
     _repo.Save();
     return(StatusCode(StatusCodes.Status201Created));
 }
예제 #2
0
 public void Add(Reservation reservation)
 {
     _reservationDal.Add(reservation);
 }