Example #1
0
 public ActionResult <Reserva> Create(Reserva reserva)
 {
     reserva.DataCriacao = DateTime.Now;
     _dbService.CreateAndUpdateCounter(reserva);
     return(CreatedAtRoute("GetReserva", new { id = reserva.Id.ToString() }, reserva));
 }