Пример #1
0
        private static MaritalStatus PopulateFromDBDetailsObject(MaritalStatusDetails obj)
        {
            MaritalStatus objNew = new MaritalStatus();

            objNew.MaritalStatusId = obj.MaritalStatusId;
            objNew.Name            = obj.Name;
            return(objNew);
        }
Пример #2
0
 /// <summary>
 /// Get
 /// Calls [usp_select_MaritalStatus]
 /// </summary>
 public static MaritalStatus Get(System.Int32?maritalStatusId)
 {
     Rebound.GlobalTrader.DAL.MaritalStatusDetails objDetails = Rebound.GlobalTrader.DAL.SiteProvider.MaritalStatus.Get(maritalStatusId);
     if (objDetails == null)
     {
         return(null);
     }
     else
     {
         MaritalStatus obj = new MaritalStatus();
         obj.MaritalStatusId = objDetails.MaritalStatusId;
         obj.Name            = objDetails.Name;
         objDetails          = null;
         return(obj);
     }
 }
Пример #3
0
        /// <summary>
        /// DropDown
        /// Calls [usp_dropdown_MaritalStatus]
        /// </summary>
        public static List <MaritalStatus> DropDown()
        {
            List <MaritalStatusDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.MaritalStatus.DropDown();

            if (lstDetails == null)
            {
                return(new List <MaritalStatus>());
            }
            else
            {
                List <MaritalStatus> lst = new List <MaritalStatus>();
                foreach (MaritalStatusDetails objDetails in lstDetails)
                {
                    Rebound.GlobalTrader.BLL.MaritalStatus obj = new Rebound.GlobalTrader.BLL.MaritalStatus();
                    obj.MaritalStatusId = objDetails.MaritalStatusId;
                    obj.Name            = objDetails.Name;
                    lst.Add(obj);
                    obj = null;
                }
                lstDetails = null;
                return(lst);
            }
        }