public async Task <ActionResult> Edit([Bind(Include = "ReservationId,MainGuestName,TotalAmount,Confirmed,FromDate,ToDate")] Reservation reservation) { if (ModelState.IsValid) { await _reservationService.EditReservationAsync(reservation); return(RedirectToAction("Index")); } return(View(reservation)); }