示例#1
0
        public ActionResult <List <OrderDTO> > FindOrder(string query)
        {
            if (DataHelper.IsEmptyString(query))
            {
                return(BadRequest());
            }
            //
            var re = _orderModel.Find(query);

            if (re == null || re.Count == 0)
            {
                return(Problem(statusCode: 500, detail: "Data not exist"));
            }
            return(re);
        }