public ActionResult DeleteOne(int id) { try { var menuLink = _menuLinkService.GetMenu(id); _menuLinkService.Delete(menuLink); } catch (Exception ex) { LogText.Log(string.Concat("MenuLink.DeleteById: ", ex.Message)); Response.Cookies.Add(new HttpCookie("system_message", string.Format(MessageUI.ErrorMessageWithFormat, ex.Message))); } return(RedirectToAction("Index")); }