/// <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; } }
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; } }
public PreferenceRank(PreferenceOption preference, int rank) { Preference = preference; Rank = rank; }