public IHttpActionResult DetailOfParticularReservation(int id) { Reservation c = repo.GetDetails(id); if (c == null) { return(NotFound()); } else { return(Ok(c)); } }