Compare commits
No commits in common. "6bb167b919365caac57d4c6f3c9227611e8e0b53" and "227f65caf185d13a319a41648cbf60d739a763ef" have entirely different histories.
6bb167b919
...
227f65caf1
|
|
@ -26,7 +26,7 @@ namespace IRaCIS.Core.Application.Contracts
|
||||||
public async Task<List<UserTypeRoleView>> GetUserTypeRoleList(UserTypeQuery userTypeQuery)
|
public async Task<List<UserTypeRoleView>> GetUserTypeRoleList(UserTypeQuery userTypeQuery)
|
||||||
{
|
{
|
||||||
|
|
||||||
var userTypeRoleQueryable = userTypeServiceRepository.Where(t=>t.UserTypeEnum !=UserTypeEnum.SuperAdmin)
|
var userTypeRoleQueryable = userTypeServiceRepository.Where(t=>t.UserTypeEnum !=UserTypeEnum.Administrator)
|
||||||
.WhereIf(!string.IsNullOrWhiteSpace(userTypeQuery.SearchFilter), t => t.Description.Contains(userTypeQuery.SearchFilter!) || t.UserTypeName.Contains(userTypeQuery.SearchFilter!) || t.UserTypeShortName.Contains(userTypeQuery.SearchFilter!))
|
.WhereIf(!string.IsNullOrWhiteSpace(userTypeQuery.SearchFilter), t => t.Description.Contains(userTypeQuery.SearchFilter!) || t.UserTypeName.Contains(userTypeQuery.SearchFilter!) || t.UserTypeShortName.Contains(userTypeQuery.SearchFilter!))
|
||||||
|
|
||||||
.WhereIf(userTypeQuery.GroupId!=null,t=>t.UserTypeGroupList.Any(t=>t.DictionaryId== userTypeQuery.GroupId))
|
.WhereIf(userTypeQuery.GroupId!=null,t=>t.UserTypeGroupList.Any(t=>t.DictionaryId== userTypeQuery.GroupId))
|
||||||
|
|
|
||||||
|
|
@ -63,7 +63,7 @@
|
||||||
ShareImage = 125,
|
ShareImage = 125,
|
||||||
|
|
||||||
|
|
||||||
SuperAdmin = 99,
|
Administrator= 99,
|
||||||
|
|
||||||
Undefined=0
|
Undefined=0
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue