Esempio n. 1
0
        public ActionResult SocialNetworkDelete(int id, GridCommand command)
        {
            var socialNetwork = socialNetworkService.GetById(id);

            if (socialNetwork != null)
            {
                var entityId = socialNetwork.EntityId;
                socialNetworkService.Delete(socialNetwork);
                return(SocialNetworkList(command, entityId));
            }
            return(SocialNetworkList(command, "-1"));
        }