Exemplo n.º 1
0
        public ActionResult enregistrer(string promotion, string matiere, string salle, string professeur, string heuredebut, string heurefin, string date)
        {
            string messErreur = null;

            RESERVATION_MODEL reservation = new RESERVATION_MODEL();

            reservation.PROMOTION   = promotion;
            reservation.MATIERE     = matiere;
            reservation.SALLE       = salle;
            reservation.PROFFESSEUR = professeur;
            reservation.DATE_DEBUT  = Convert.ToDateTime(heuredebut);
            reservation.DATE_FIN    = Convert.ToDateTime(heurefin);
            reservation.DATE        = Convert.ToDateTime(date);

            messErreur = PlanningService.AjouterReservationDansLaBase(reservation);
            //if (messErreur == null)
            //{

            //}
            return(Content(messErreur, null));
        }