Beispiel #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="prefernceId"></param>
        /// <returns></returns>
        public static PreferenceOption Load(int prefernceId)
        {
            try
            {
                PrefernceOptionDataService dataService = new PrefernceOptionDataService();
                DataSet ds = dataService.GetAll();

                PreferenceOption objPefernce = new PreferenceOption();
                return((objPefernce.MapData(ds)) ? objPefernce : null);
            } catch
            {
                throw;
            }
        }
Beispiel #2
0
        public override bool MapData(DataRow row)
        {
            try
            {
                PreferenceOption objPrefernce = new PreferenceOption();
                objPrefernce.MapData(row);

                this.Rank       = GetInt(row, "Rank");
                this.Preference = objPrefernce;

                return(true);
            } catch
            {
                throw;
            }
        }
Beispiel #3
0
 public PreferenceRank(PreferenceOption preference, int rank)
 {
     Preference = preference;
     Rank       = rank;
 }