лишнее поле у доступа для выборки
This commit is contained in:
parent
4230c26a1a
commit
f2921ecc7a
@ -11,12 +11,10 @@ namespace SecurityBusinessLogic.BindingModels
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public class AccessGetBindingModel : GetBindingModel
|
public class AccessGetBindingModel : GetBindingModel
|
||||||
{
|
{
|
||||||
public Guid? RoleId { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Для вывода списка доступов по роли в контроле десктопном
|
/// Для вывода списка доступов по роли в контроле десктопном
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string RoleName { get; set; }
|
public Guid? RoleId { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -87,10 +87,6 @@ namespace SecurityDatabaseImplementation.Implementations
|
|||||||
{
|
{
|
||||||
query = query.Where(x => x.RoleId == model.RoleId);
|
query = query.Where(x => x.RoleId == model.RoleId);
|
||||||
}
|
}
|
||||||
if(model.RoleName.IsNotEmpty())
|
|
||||||
{
|
|
||||||
query = query.Where(x => x.Role.RoleName == model.RoleName);
|
|
||||||
}
|
|
||||||
|
|
||||||
query = query.OrderBy(x => x.Role.RoleName).ThenBy(x => x.AccessOperation).ThenBy(x => x.AccessType);
|
query = query.OrderBy(x => x.Role.RoleName).ThenBy(x => x.AccessOperation).ThenBy(x => x.AccessType);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user