public async Task <ActionResult> Delete(int id, FormCollection collection) { try { var offre = manager.GetOffre(id); await manager.DeleteOffreAsync(offre); return(RedirectToAction("Index")); } catch { return(View("Errors/Erreur405")); } }