Ejemplo n.º 1
0
        public static int LookUpAdvRewardStatusId(string lookupValue)
        {
            var lookobj = AdvRewardStatus.FirstOrDefault(p => p.ShortDescription == lookupValue);

            return(lookobj == null ? 0 : lookobj.StatusId);
        }
Ejemplo n.º 2
0
        public static string LookUpAdvRewardStatusId(int lookupValue)
        {
            var lookobj = AdvRewardStatus.FirstOrDefault(p => p.StatusId == lookupValue);

            return(lookobj == null ? "无效" : lookobj.ShortDescription);
        }