Ejemplo n.º 1
0
        public IQueryable <sys_EnumReference> GetEntityListByName(ReferenceList name)
        {
            Guid companyId = this.GetCurrentCompanyId();

            string _name = name.ToString();

            return(this._repoEnumReference
                   .Query().Filter(x => x.name == _name && x.companyId == companyId)
                   .Get()
                   .OrderBy(x => x.displayOrder));
        }
Ejemplo n.º 2
0
        public IQueryable <ReferenceModel> GetQuery(ReferenceList name)
        {
            Guid companyId = this.GetCurrentCompanyId();

            string _name = name.ToString();

            return(this._repoEnumReference
                   .Query().Filter(x => x.name == _name && x.companyId == companyId)
                   .Get()
                   .OrderBy(x => x.displayOrder)
                   .ThenBy(x => x.value)
                   .Select(x => new ReferenceModel()
            {
                value = x.value,
                description = x.description
            }));
        }