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

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> /// </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>

View File

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