コード例 #1
0
        public bool DeleteNavigation(int navigationId)
        {
            Entity.m_WebSiteNavigation model = new Entity.m_WebSiteNavigation();
            model.NavigationId = navigationId;
            CommonRepository repository = new CommonRepository();

            return(repository.Delete(model));
        }
コード例 #2
0
        public bool AddNavigation(string navigationName, string linkUrl, int sortCount, bool isTarget, bool isShow)
        {
            Entity.m_WebSiteNavigation model = new Entity.m_WebSiteNavigation();
            model.AppendTime     = DateTime.Now;
            model.IsShow         = isShow;
            model.IsTarget       = isTarget;
            model.LinkUrl        = linkUrl;
            model.NavigationName = navigationName;
            model.SortCount      = sortCount;
            CommonRepository repository = new CommonRepository();

            return(repository.Add(model));
        }
コード例 #3
0
        public bool EditNavigation(int navigationId, string navigationName, string linkUrl, int sortCount, bool isTarget, bool isShow)
        {
            Entity.m_WebSiteNavigation model = new Entity.m_WebSiteNavigation();
            model.NavigationId   = navigationId;
            model.IsShow         = isShow;
            model.IsTarget       = isTarget;
            model.LinkUrl        = linkUrl;
            model.NavigationName = navigationName;
            model.SortCount      = sortCount;
            CommonRepository repository = new CommonRepository();

            return(repository.Update(model));
        }