Убрано лишнее

This commit is contained in:
Olga Nemt 2023-02-02 17:51:27 +05:00
parent 2746c94729
commit c62d3adb18

View File

@ -150,14 +150,5 @@ namespace AsbCloudInfrastructure.Services.SAUB
return db.SaveChangesAsync(token);
}
private bool hasAllFieldsInType<T>(IEnumerable<string> sortFields)
{
var type = typeof(T);
var properyNames = type.GetProperties().Select(x => x.Name.ToLower());
sortFields = sortFields.Select(x => x.ToLower().Split(' ')[0]);
var result = sortFields.All(field => properyNames.Contains(field));
return result;
}
}
}