public IQueryable <Product> SearchProduct([FromBody] Product data) { var query = new List <Product>(); try { query = _service.SearchProduct(data.ProductName); return(query.AsQueryable()); } catch (Exception ex) { throw ex; } }