Example #1
0
 public IHttpActionResult ModifyExistingReservation(Reservation c)
 {
     if (ModelState.IsValid)
     {
         try
         {
             repo.UpdateReservation(c);
             return(Ok("data entered successfully"));
         }
         catch (Exception)
         {
             return(NotFound());
         }
     }
     else
     {
         return(NotFound());
     }
 }
Example #2
0
 public void UpdateReservation([FromBody] ReservationClass reservation)
 {
     _repo.UpdateReservation(reservation);
 }