public static void Main()
Console.WriteLine("Hello World");
var tables = Enumerable.Empty<Table>();
string customerInput = "";
.Where(t => t.OrderId == 0 || t.OrderId < orderInput)
.Where(t => string.IsNullOrWhiteSpace(t.CustomerId) || t.CustomerId == customerInput)
.Where(t => t.OrderId == 0 || t.OrderId < employeeInput);
var tables = Enumerable.Empty<Table>();
var aInputModel = new InputModel()
var q = tables.Where(t => aInputModel.IsMatch(t));
public int OrderId { get; set; }
public string CustomerId { get; set; }
public int EmployeeId { get; set; }
public int orderInput { get; set; }
public string customerInput { get; set; }
public int employeeInput { get; set; }
private bool IsOrderIdMatch(int orderId) => orderInput == 0 || orderId < orderInput;
private bool IsCustomerIdMatch(string customerId) => string.IsNullOrWhiteSpace(customerInput) || customerId == customerInput;
private bool IsEmployeeMatch(int employeeId) => employeeInput == 0 || employeeId < employeeInput;
public bool IsMatch(Table aTable) => IsOrderIdMatch(aTable.OrderId)
&& IsCustomerIdMatch(aTable.CustomerId)
&& IsEmployeeMatch(aTable.EmployeeId);