Example #1
0
        public ActionResult Modal_Validation(int id)
        {
            Ticket_Attente editTicket = contexteEF.Ticket_Attente.Single(p => p.Id == id);

            Models.Model_Ticket_Attente editTick = AutoMapper.Mapper.Map <Models.Model_Ticket_Attente>(editTicket);
            return(View(editTick));
        }
Example #2
0
        public ActionResult Modal_Validation(Models.Model_Ticket_Validation models)
        {
            models.Validation = 1;
            Ticket_Attente ticketAttente = contexteEF.Ticket_Attente.Single(p => p.Id == models.Id);

            ticketAttente = AutoMapper.Mapper.Map <Models.Model_Ticket_Validation, Ticket_Attente>(models, ticketAttente);
            contexteEF.SaveChanges();
            return(RedirectToAction("Ticket_Attente", "Home", new { configValid = "ok" }));
        }
Example #3
0
        public ActionResult Modal_Suivie(Models.Model_Ticket_Suivie models)
        {
            Ticket_Attente ticketAttente = contexteEF.Ticket_Attente.Single(p => p.Id == models.Id);

            ticketAttente = AutoMapper.Mapper.Map <Models.Model_Ticket_Suivie, Ticket_Attente>(models, ticketAttente);
            contexteEF.SaveChanges();

            //Redirige avec réecriture URL d'une confirmation lue via RequestParameter
            return(RedirectToAction("Ticket_Attente", "Home", new { confirmSuivie = "ok" }));
        }