лишнее поле у доступа для выборки

This commit is contained in:
kotcheshir73 2021-04-03 07:55:47 +04:00
parent 4230c26a1a
commit f2921ecc7a
2 changed files with 1 additions and 7 deletions

View File

@ -11,12 +11,10 @@ namespace SecurityBusinessLogic.BindingModels
/// </summary>
public class AccessGetBindingModel : GetBindingModel
{
public Guid? RoleId { get; set; }
/// <summary>
/// Для вывода списка доступов по роли в контроле десктопном
/// </summary>
public string RoleName { get; set; }
public Guid? RoleId { get; set; }
}
/// <summary>

View File

@ -87,10 +87,6 @@ namespace SecurityDatabaseImplementation.Implementations
{
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);