public IHttpActionResult GetVerDetalleVenta(string usuario, int idCliente, int idVenta) { try { VentaBL oVentaBL = new VentaBL(idCliente); RegistroVentaBE obe = oVentaBL.VerDetalleVenta(usuario, idCliente, idVenta); if (obe != null && (obe.listadoDetalle != null && obe.listadoDetalle.Count > 0)) { return(Ok(Models.Util.GetBodyResponse(200, obe))); } else { return(Ok(Models.Util.GetBodyResponse(300, "No se encontraron registros."))); } } catch (Exception ex) { /*LogSA.GrabarLogError("SOL TR", user, "GetListarOrdOtrs", ex);*/ return(Ok(Models.Util.GetBodyResponse(400, ex.Message))); } }