Ejemplo n.º 1
0
        public async Task <ActionResult> Create([Bind(Include = "ReservationId,MainGuestName,TotalAmount,Confirmed,FromDate,ToDate")] Reservation reservation)
        {
            if (ModelState.IsValid)
            {
                await _reservationService.CreateReservationAsync(reservation);

                return(RedirectToAction("Index"));
            }

            return(View(reservation));
        }