public ActionResult Delete(int id) { var obj = siteService.DeleteLink(id); if (obj.Tag <= 0) { ViewBag.Error = obj.Message; } return(RedirectToAction("Index")); }