Example #1
0
        public async Task <ActionResult> Edit(int id, FormCollection collection)
        {
            try
            {
                Offre offre = manager.GetOffre(id);
                offre = EditerOffre(collection, offre);
                await manager.SauvegarderOffreAsync(offre);

                return(RedirectToAction("Index"));
            }
            catch
            {
                return(View("Errors/Erreur405"));
            }
        }