Beispiel #1
0
        public DXInfo.Models.NameCode GetNameCode(DXInfo.Models.NameCodeType ncType)
        {
            string type = ncType.ToString();

            DXInfo.Models.NameCode nameCode = uow.NameCode.GetAll().Where(w => w.Type == type).FirstOrDefault();
            return(nameCode);
        }
Beispiel #2
0
        public List <DXInfo.Models.NameCode> GetlNameCode(DXInfo.Models.NameCodeType ncType)
        {
            string type = ncType.ToString();
            List <DXInfo.Models.NameCode> lNameCode = uow.NameCode.GetAll().Where(w => w.Type == type).ToList();

            if (lNameCode == null)
            {
                lNameCode = new List <Models.NameCode>();
            }
            return(lNameCode);
        }