Пример #1
0
        public IActionResult GetOrder(string name)
        {
            List <GetOrderByName> list = new List <GetOrderByName>();

            try {
                list = _service.GetOrder(name);
            }
            catch (CustomerNotFoundException ex) {
                return(BadRequest("Such customer does not exists"));
            }
            return(Ok(list));
        }
Пример #2
0
 public IActionResult GetOrder(string name)
 {
     return(_service.GetOrder(name));
 }