Beispiel #1
0
        public async Task <ActionResult> Delete(int id, FormCollection collection)
        {
            try
            {
                var offre = manager.GetEmploye(id);
                await manager.DeleteEmployeAsync(offre);

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