Exemplo n.º 1
0
        public ActionResult Delete(int id)
        {
            try
            {
                _repository.Remove(id);
            }
            catch (Exception ex)
            {
                Debug.WriteLine(ex.Message);
                return(RedirectToAction("Index", "SiteAdmin", new { area = "" }));
            }

            return(RedirectToAction("Index", "SiteAdmin", new { area = "" }));
        }