public ActionResult Save([FromBody] Stock data) { var Stock = _posrepo.SaveStock(data); return(new JsonResult(Stock)); }