public IHttpActionResult GetListarImagenProducto(string usuario, int idCliente, int idProducto) { try { VentaBL oVentaBL = new VentaBL(idCliente); List <ListaArchivosAdjuntos> obe = oVentaBL.ListarImagenProducto(usuario, idProducto); if (obe != null && obe.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))); } }