Esempio n. 1
0
        public ActionResult Delete(int id, FormCollection collection)
        {
            try
            {
                Covenant covenant = _service.Retrieve(id);

                _service.Delete(covenant.Id);

                return(RedirectToAction("Index"));
            }
            catch
            {
                return(View("Error"));
            }
        }