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)); }
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 })); }