public ActionResult GenericAttribute_Delete(int id) { try { var genericAttribute = _genericAttributeService.GetAttributeById(id); if (genericAttribute == null) { throw new ArgumentException("No link found with the specified id"); } _genericAttributeService.Delete(genericAttribute); return(new NullJsonResult()); } catch (Exception) { return(new NullJsonResult()); } }