public ActionResult Update(string id, [FromBody] Product data) { var product = _posrepo.UpdateProduct(id, data); return(new JsonResult(product)); }