/// <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); } }
public static IEnumerable <InfoLibItem> SearchInfoLibItems(Scope?ScopeOfSearcher, string SearchText, bool IsArchived) { InfoLibDAL dal = new InfoLibDAL(); return(dal.SearchInfoLibItems(ScopeOfSearcher, SearchText, IsArchived)); }
public static InfoLibItemFile GetInfoLibFile(int InfoLibItemId, InfoLibFileServerTypes type) { InfoLibDAL dal = new InfoLibDAL(); return(dal.GetInfoLibFile(InfoLibItemId, type)); }
public static InfoLibItem GetInfoLibTopLevelParent(int InfoLibItemId, bool IsArchived) { InfoLibDAL dal = new InfoLibDAL(); return(dal.GetInfoLibTopLevelParent(InfoLibItemId, IsArchived)); }
public static InfoLibItem GetInfoLibItem(int InfoLibItemId, bool IncludeInfoLibItemLinkFile) { InfoLibDAL dal = new InfoLibDAL(); return(dal.GetInfoLibItem(InfoLibItemId, IncludeInfoLibItemLinkFile)); }
public static IEnumerable <InfoLibItem> GetTopLevelInfoLibItems(bool IsArchived) { InfoLibDAL dal = new InfoLibDAL(); return(dal.GetTopLevelInfoLibItems(IsArchived)); }
public static IEnumerable <InfoLibItem> GetInfoLibItems(Scope?ScopeId, int ParentId) { InfoLibDAL dal = new InfoLibDAL(); return(dal.GetInfoLibItems(ScopeId, ParentId)); }
/// <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)); }
/// <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)); }
public static InfoLibForumCallItem GetInfoLibForumCallItem() { InfoLibDAL dal = new InfoLibDAL(); return(dal.GetInfoLibForumCallItem()); }