Example #1
0
        /// <summary>
        /// Returns new InfoLibItem record Id value
        /// </summary>
        /// <param name="item"></param>
        /// <returns></returns>
        public static int?AddInfoLibItem(InfoLibItem item, out string FailureReason)
        {
            int NewInfoLibItemId;

            InfoLibDAL dal = new InfoLibDAL();

            if (dal.AddInfoLibItem(item, out NewInfoLibItemId, out FailureReason))
            {
                return(NewInfoLibItemId);
            }
            else
            {
                return(null);
            }
        }
Example #2
0
        public static IEnumerable <InfoLibItem> SearchInfoLibItems(Scope?ScopeOfSearcher, string SearchText, bool IsArchived)
        {
            InfoLibDAL dal = new InfoLibDAL();

            return(dal.SearchInfoLibItems(ScopeOfSearcher, SearchText, IsArchived));
        }
Example #3
0
        public static InfoLibItemFile GetInfoLibFile(int InfoLibItemId, InfoLibFileServerTypes type)
        {
            InfoLibDAL dal = new InfoLibDAL();

            return(dal.GetInfoLibFile(InfoLibItemId, type));
        }
Example #4
0
        public static InfoLibItem GetInfoLibTopLevelParent(int InfoLibItemId, bool IsArchived)
        {
            InfoLibDAL dal = new InfoLibDAL();

            return(dal.GetInfoLibTopLevelParent(InfoLibItemId, IsArchived));
        }
Example #5
0
        public static InfoLibItem GetInfoLibItem(int InfoLibItemId, bool IncludeInfoLibItemLinkFile)
        {
            InfoLibDAL dal = new InfoLibDAL();

            return(dal.GetInfoLibItem(InfoLibItemId, IncludeInfoLibItemLinkFile));
        }
Example #6
0
        public static IEnumerable <InfoLibItem> GetTopLevelInfoLibItems(bool IsArchived)
        {
            InfoLibDAL dal = new InfoLibDAL();

            return(dal.GetTopLevelInfoLibItems(IsArchived));
        }
Example #7
0
        public static IEnumerable <InfoLibItem> GetInfoLibItems(Scope?ScopeId, int ParentId)
        {
            InfoLibDAL dal = new InfoLibDAL();

            return(dal.GetInfoLibItems(ScopeId, ParentId));
        }
Example #8
0
        /// <summary>
        /// Deletes an InfoLibitem and all its child items
        /// </summary>
        /// <param name="item"></param>
        /// <returns></returns>
        public static bool DeleteInfoLibItem(int InfoLibItemId, Scope?scope)
        {
            InfoLibDAL dal = new InfoLibDAL();

            return(dal.DeleteInfoLibItem(InfoLibItemId, scope.HasValue ? scope.Value.EnumValue <int>() : (int?)null));
        }
Example #9
0
        /// <summary>
        /// Updates an InfoLibitem
        /// </summary>
        /// <param name="item"></param>
        /// <returns></returns>
        public static bool UpdateInfoLibItem(InfoLibItem item, out string FailureReason)
        {
            InfoLibDAL dal = new InfoLibDAL();

            return(dal.UpdateInfoLibItem(item, out FailureReason));
        }
Example #10
0
        public static InfoLibForumCallItem GetInfoLibForumCallItem()
        {
            InfoLibDAL dal = new InfoLibDAL();

            return(dal.GetInfoLibForumCallItem());
        }