public IActionResult GetOrders(string LastName) { var param = HttpContext.Request; if (param.Query.ContainsKey("LastName")) { return(_dbService.GetOrders(LastName)); } return(_dbService.GetOrders()); }
public IActionResult showOrders(String nazwisko) { return(_dbService.GetOrders(nazwisko)); }