public bool DeleteNavigation(int navigationId) { Entity.m_WebSiteNavigation model = new Entity.m_WebSiteNavigation(); model.NavigationId = navigationId; CommonRepository repository = new CommonRepository(); return(repository.Delete(model)); }
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)); }
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)); }