Posts by Marcio Rodrigues • 11 points
1 post
-
1
votes2
answers151
viewsQ: How do I use two checkboxes in a C# mvc view to choose the query type?
Controller.cs public ActionResult pesquisarCliente(string _codigo) { var r = db.Pedido.AsQueryable(); if (!string.IsNullOrEmpty(_codigo)) { r = r.Where(n => n.Cliente.Contains(_codigo));…