public ActionResult GetCompraDetalle(int id) { try { return(Ok(service.GetAllComprasDetalleServicioByCompraId(id))); } catch (Exception ex) { AltivaLog.Log.Insertar(ex.ToString(), "Error"); return(BadRequest()); } }