Beispiel #1
0
        public IActionResult SearchProducts([FromBody] SearchProductReq req)
        {
            var res  = new SingleRsp();
            var pros = _svc.SearchProduct(req.Keyword, req.Page, req.Size);

            res.Data = pros;
            return(Ok(res));
        }
        public IActionResult SearchProduct(int size, int page, String keyWord)
        {
            var result = _svc.SearchProduct(size, page, keyWord);

            return(Ok(result));
        }