//.........................................***********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")); } }
public void Delete(int id) { _service.Delete(id); }
public void Delete(int id) { _globalService.Delete(id); }