Ejemplo n.º 1
0
        public override bool Delete(int id)
        {
            var commentmanager = new BLL.CommentManager();

            commentmanager.DeleteAllByUserId(id);
            var supportProjectManager = new BLL.SupportProjectManager();

            supportProjectManager.DeleteAllByUserId(id);
            if (dal.Delete(id) > 0)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Ejemplo n.º 2
0
        public override bool Delete(int id)
        {
            var commentmanager = new BLL.CommentManager();

            commentmanager.DeleteAllByUserId(id);
            var supportProjectManager = new BLL.SupportProjectManager();

            supportProjectManager.DeleteAllByUserId(id);
            var projectManager = new BLL.ProjectManager();

            projectManager.DeleteByUserId(id);
            var launchInfoManager = new BLL.LaunchInfoManager();

            launchInfoManager.DeleteByUserId(id);
            var likesManager = new BLL.LikesManager();

            likesManager.DeleteByUserId(id);
            return(dal.Delete(id) > 0);
        }