public IActionResult Post([FromBody] Reservation reservation) { _repo.Add(reservation); _repo.Save(); return(StatusCode(StatusCodes.Status201Created)); }
public void Add(Reservation reservation) { _reservationDal.Add(reservation); }