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