예제 #1
0
        /// <summary>
        /// GetList
        /// Calls [usp_selectAll_HelpFAQ]
        /// </summary>
        public static List <HelpFaq> GetList()
        {
            List <HelpFaqDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.HelpFaq.GetList();

            if (lstDetails == null)
            {
                return(new List <HelpFaq>());
            }
            else
            {
                List <HelpFaq> lst = new List <HelpFaq>();
                foreach (HelpFaqDetails objDetails in lstDetails)
                {
                    Rebound.GlobalTrader.BLL.HelpFaq obj = new Rebound.GlobalTrader.BLL.HelpFaq();
                    obj.HelpFAQId   = objDetails.HelpFAQId;
                    obj.HelpGroupNo = objDetails.HelpGroupNo;
                    obj.Question    = objDetails.Question;
                    obj.Answer      = objDetails.Answer;
                    obj.SortOrder   = objDetails.SortOrder;
                    lst.Add(obj);
                    obj = null;
                }
                lstDetails = null;
                return(lst);
            }
        }
예제 #2
0
        private static HelpFaq PopulateFromDBDetailsObject(HelpFaqDetails obj)
        {
            HelpFaq objNew = new HelpFaq();

            objNew.HelpFAQId   = obj.HelpFAQId;
            objNew.HelpGroupNo = obj.HelpGroupNo;
            objNew.Question    = obj.Question;
            objNew.Answer      = obj.Answer;
            objNew.SortOrder   = obj.SortOrder;
            return(objNew);
        }
예제 #3
0
 /// <summary>
 /// Get
 /// Calls [usp_select_HelpFAQ]
 /// </summary>
 public static HelpFaq Get(System.Int32?helpFaqId)
 {
     Rebound.GlobalTrader.DAL.HelpFaqDetails objDetails = Rebound.GlobalTrader.DAL.SiteProvider.HelpFaq.Get(helpFaqId);
     if (objDetails == null)
     {
         return(null);
     }
     else
     {
         HelpFaq obj = new HelpFaq();
         obj.HelpFAQId   = objDetails.HelpFAQId;
         obj.HelpGroupNo = objDetails.HelpGroupNo;
         obj.Question    = objDetails.Question;
         obj.Answer      = objDetails.Answer;
         obj.SortOrder   = objDetails.SortOrder;
         objDetails      = null;
         return(obj);
     }
 }