Exemplo n.º 1
0
        ///<summary>If none assigned, it will return None.</summary>
        public static EbenefitCategory GetEbenCat(long covCatNum)
        {
            //No need to check RemotingRole; no call to db.
            CovCat covCat = CovCats.GetFirstOrDefault(x => x.CovCatNum == covCatNum, true);

            return(covCat == null ? EbenefitCategory.None : covCat.EbenefitCat);
        }
Exemplo n.º 2
0
 ///<summary>Gets a matching benefit category from the short list.  Returns null if not found, which should be tested for.</summary>
 public static CovCat GetForEbenCat(EbenefitCategory eben)
 {
     //No need to check RemotingRole; no call to db.
     return(CovCats.GetFirstOrDefault(x => x.EbenefitCat == eben, true));
 }