Example #1
0
        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"));
            }
        }