Exemplo n.º 1
0
 //.........................................***********DELETE************...............................................
 //  [HttpDelete]
 public ActionResult Delete(int id, DateTime datedebut, int choixchantier)
 {
     if (SessionManager.SessionUser != null)
     {
         TempData["choixchantier"] = choixchantier;
         TempData["datedebut"]     = datedebut;
         _serviceJDT.Delete(id);
         return(RedirectToAction("Index", new { choixchantier = @TempData["choixchantier"], datedebut = @TempData["datedebut"] }));
     }
     else
     {
         return(RedirectToAction("../../Home/Index"));
     }
 }
Exemplo n.º 2
0
 public void Delete(int id)
 {
     _service.Delete(id);
 }
Exemplo n.º 3
0
 public void Delete(int id)
 {
     _globalService.Delete(id);
 }