public IActionResult UpdateProductPut(String id, ProductReq req)
        {
            var result = _svc.UpdateProduct(id, req);

            return(Ok(result));
        }
示例#2
0
        public IActionResult UpdateProduct([FromBody] ProductReq req)
        {
            var res = _svc.UpdateProduct(req);

            return(Ok(res));
        }