Exemple #1
0
        public IActionResult GetOrders(string LastName)
        {
            var param = HttpContext.Request;

            if (param.Query.ContainsKey("LastName"))
            {
                return(_dbService.GetOrders(LastName));
            }
            return(_dbService.GetOrders());
        }
Exemple #2
0
 public IActionResult showOrders(String nazwisko)
 {
     return(_dbService.GetOrders(nazwisko));
 }