Ejemplo n.º 1
0
        public ActionResult Delete(Guid id)
        {
            try
            {
                _adminData.DeleteAct(id);
                _alert.Set(this, AlertType.Success, "Changes have been saved");
            }
            catch (Exception)
            {
                _alert.Set(this, AlertType.Error, "Unable to save changes");
            }

            return(RedirectToAction("Index", "Performers"));
        }