// DELETE api/<controller>/5
 public string Delete(int id)
 {
     if (ReservationEnCoursDAO.Delete(id))
     {
         return("OK");
     }
     return("KO");
 }
 // PUT api/<controller>/5
 public string Put(ReservationEnCours reserv)
 {
     if (ReservationEnCoursDAO.Update(reserv))
     {
         return("OK");
     }
     return("KO");
 }
 public IEnumerable <ReservationEnCours> Get(int type, int id)
 {
     if (type == 0)
     {
         return(ReservationEnCoursDAO.GetAllReservationEnCours(id));
     }
     else
     {
         return(ReservationEnCoursDAO.GetAllReservationEnCoursMembre(id));
     }
 }
 // POST api/<controller>
 public ReservationEnCours Post(ReservationEnCours reserv)
 {
     return(ReservationEnCoursDAO.Create(reserv));
 }
 public IEnumerable <ReservationEnCours> GetMembreRes(int idMembre)
 {
     return(ReservationEnCoursDAO.GetReservMembre(idMembre));
 }
 public IEnumerable <ReservationEnCours> Get()
 {
     return(ReservationEnCoursDAO.GetAllReservationEnCours());
 }