public async Task <IActionResult> OnGetAsiento(int idB) { try { var resp = await sap.InsertarAsiento(idB); return(new JsonResult(resp)); } catch (Exception ex) { return(new JsonResult(ex.Message)); } }