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